⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
Test-Warnings-0.033-0
/
t
/
View File Name :
02-done_testing.t
use strict; use warnings; use Test::More 0.88; use Test::Warnings; # testing our alteration of done_testing is a bit tricky, as (duh) once we've # called done_testing, we're done and cannot emit any further TAP. Therefore, # I'll do post-done_testing tests simply by diagnostics and via the exit code, # which should be enough for cpantesters to generate a failure report. pass('a passing test'); my $tb = Test::Builder->new; is($tb->current_test, 1, 'we have had one test so far'); # now our test count is 2 done_testing; # now our test count should be 3, and we cannot call any more test functions my $tests = $tb->current_test; if ($tests != 3) { note 'test count not ok - is ' . $tests . ', should be 3!'; exit 1; } note 'test count ok!';