⚝
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 :
03-subtest.t
use strict; use warnings; use Test::More 0.94; use Test::Warnings ':all'; is(1, 1, 'passing test'); my $had_no_warnings_called; { no strict 'refs'; my $orig = *{'Test::Warnings::had_no_warnings'}{CODE}; no warnings 'redefine'; *{'Test::Warnings::had_no_warnings'} = sub(;$) { $had_no_warnings_called++; $orig->(@_); }; } subtest 'here is a subtest' => sub { pass('another passing test'); # no test is added via the done_testing here done_testing; }; ok(!$had_no_warnings_called, 'had_no_warnings was not called via the subtest\'s done_testing'); done_testing; # we are done testing, so we need to signal our status via exit codes. exit($had_no_warnings_called ? 0 : 1);