%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /proc/thread-self/root/usr/share/doc/perl-Test-Simple/t/Legacy/ |
Upload File : |
use strict;
use Test::Tester;
my $Test = Test::Builder->new;
$Test->plan(tests => 3);
my $cap;
$cap = Test::Tester->capture;
{
no warnings 'redefine';
sub Test::Tester::find_run_tests { return 0};
}
local $Test::Builder::Level = 0;
{
my $cur = $cap->current_test;
$Test->is_num($cur, 0, "current test");
eval {$cap->current_test(2)};
$Test->ok($@, "can't set test_num");
}
{
$cap->ok(1, "a test");
my @res = $cap->details;
$Test->is_num(scalar @res, 1, "res count");
}