shell bypass 403

GrazzMean Shell

: /usr/share/doc/perl-Moose/t/exceptions/ [ 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: 18.188.23.45
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : moose-meta-role-composite.t
use strict;
use warnings;

use Test::More;
use Test::Fatal;

use Moose();

{
    my $exception = exception {
        my $rolesComp = Moose::Meta::Role::Composite->new(roles => ["foo"]);
    };

    like(
        $exception,
        qr/\QThe list of roles must be instances of Moose::Meta::Role, not foo/,
        "'foo' is not an instance of Moose::Meta::Role");

    isa_ok(
        $exception,
        "Moose::Exception::RolesListMustBeInstancesOfMooseMetaRole",
        "'foo' is not an instance of Moose::Meta::Role");

    is(
        $exception->role,
        "foo",
        "'foo' is not an instance of Moose::Meta::Role");
}

{
    {
        package Foo;
        use Moose::Role;
    }

    my $rolesComp = Moose::Meta::Role::Composite->new(roles => [Foo->meta]);
    my $exception = exception {
        $rolesComp->add_method;
    };

    like(
        $exception,
        qr/You must define a method name/,
        "no method name given to add_method");

    isa_ok(
        $exception,
        "Moose::Exception::MustDefineAMethodName",
        "no method name given to add_method");

    is(
        $exception->instance,
        $rolesComp,
        "no method name given to add_method");
}

{
    {
        package Foo;
        use Moose::Role;
    }

    my $rolesComp = Moose::Meta::Role::Composite->new(roles => [Foo->meta]);
    my $exception = exception {
        $rolesComp->reinitialize;
    };

    like(
        $exception,
        qr/Moose::Meta::Role::Composite instances can only be reinitialized from an existing metaclass instance/,
        "no metaclass instance is given");

    isa_ok(
        $exception,
        "Moose::Exception::CannotInitializeMooseMetaRoleComposite",
        "no metaclass instance is given");

    is(
        $exception->role_composite,
        $rolesComp,
        "no metaclass instance is given");
}

done_testing;
© 2025 GrazzMean