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.222.140.99
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : moose-meta-method-accessor-native-collection.t
use strict;
use warnings;

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

use Moose();

{
    package Bar;
    use Moose;

    has 'foo' => (
        is      => 'rw',
        isa     => 'ArrayRef[Int]',
        traits  => ['Array'],
        handles => { push => 'push'}
        );
}

my $bar_obj = Bar->new;
{
    my $exception = exception {
        $bar_obj->push(1.2);
    };

    like(
        $exception,
        qr/A new member value for foo does not pass its type constraint because: Validation failed for 'Int' with value 1.2/,
        "trying to push a Float(1.2) to ArrayRef[Int]");

    isa_ok(
        $exception,
        'Moose::Exception::ValidationFailedForInlineTypeConstraint',
        "trying to push a Float(1.2) to ArrayRef[Int]");

    is(
        $exception->attribute_name,
        "foo",
        "trying to push a Float(1.2) to ArrayRef[Int]");

    is(
        $exception->class_name,
        "Bar",
        "trying to push a Float(1.2) to ArrayRef[Int]");

    is(
        $exception->value,
        1.2,
        "trying to push a Float(1.2) to ArrayRef[Int]");
}

done_testing;
© 2025 GrazzMean