shell bypass 403

GrazzMean Shell

: /usr/share/doc/perl-Moose/t/cmop/ [ drwxr-xr-x ]
Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.147.51.81
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : InstanceCountingClass_test.t
use strict;
use warnings;

use Test::More;

use Class::MOP;

use lib 't/cmop/lib';
use InstanceCountingClass;

=pod

This is a trivial and contrived example of how to
make a metaclass which will count all the instances
created. It is not meant to be anything more than
a simple demonstration of how to make a metaclass.

=cut

{
    package Foo;

    use metaclass 'InstanceCountingClass';

    sub new  {
        my $class = shift;
        $class->meta->new_object(@_);
    }

    package Bar;

    our @ISA = ('Foo');
}

is(Foo->meta->get_count(), 0, '... our Foo count is 0');
is(Bar->meta->get_count(), 0, '... our Bar count is 0');

my $foo = Foo->new();
isa_ok($foo, 'Foo');

is(Foo->meta->get_count(), 1, '... our Foo count is now 1');
is(Bar->meta->get_count(), 0, '... our Bar count is still 0');

my $bar = Bar->new();
isa_ok($bar, 'Bar');

is(Foo->meta->get_count(), 1, '... our Foo count is still 1');
is(Bar->meta->get_count(), 1, '... our Bar count is now 1');

for (2 .. 10) {
    Foo->new();
}

is(Foo->meta->get_count(), 10, '... our Foo count is now 10');
is(Bar->meta->get_count(), 1, '... our Bar count is still 1');

done_testing;
© 2025 GrazzMean