shell bypass 403

GrazzMean Shell

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

name : 114_init_arg.t
use strict;
use warnings;

use Test::More 0.88;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';

{
    package Test1;
    use Moose;
    with 'MooseX::Getopt';

    has _private => ( is => 'ro', isa => 'Str', init_arg => 'public' );
    has name_after => ( is => 'ro', isa => 'Str', init_arg => 'name_before' );
    has bar => ( is => 'ro', isa => 'Str', );
    has undefined_init_arg => ( is => 'ro', isa => 'Str', init_arg => undef );
};


{
    my $obj = Test1->new_with_options(
        argv => [ '--name_before', 'something', '--bar', 'baz', '--public',
                  1 ] );
    is( $obj->name_after, 'something', 'init_arg is respected' );

    is( $obj->_private, 1, 'works with "public" init_arg and private attribute');
}

{
    package Test::Dashes;
    use Moose;
    with 'MooseX::Getopt::Dashes';

    has name_after => ( is => 'ro', isa => 'Str', init_arg => 'name-before' );
    has bar => ( is => 'ro', isa => 'Str', );
};

{
    my $obj = Test::Dashes->new_with_options(
        argv => [ '--name-before', 'something', '--bar', 'baz', ] );
    is( $obj->name_after, 'something', 'init_arg is respected with dashes' );
}

done_testing;
© 2025 GrazzMean