⚝
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 :
07-no_plan.t
use strict; use warnings; # we intended to insert a test at END time whenever: # - done_testing has not been run, # - AND ':no_end_test' is not imported, # - AND EITHER at least one test has been run, OR there was a plan. # before v0.003, these last two conditions were also ANDed, so we # never got a test added when we were running tests without a plan # and terminated without done_testing (such as terminating a forked # process). use Test::More 'no_plan'; # define our END block first, so it is run last (after TW's END) END { final_tests(); } use Test::Warnings; pass('this is a passing test'); # now we "END"... sub final_tests { is( Test::Builder->new->current_test, 2, 'two tests have been run (the pass, and our no-warnings-via-END test)', ); }