X7ROOT File Manager
Current Path:
/usr/share/doc/perl-Test-Simple/t/Legacy_And_Test2
usr
/
share
/
doc
/
perl-Test-Simple
/
t
/
Legacy_And_Test2
/
📁
..
📄
builder_loaded_late.t
(572 B)
📄
diag_event_on_ok.t
(499 B)
📄
hidden_warnings.t
(307 B)
📄
preload_diag_note.t
(668 B)
Editing: hidden_warnings.t
use strict; use warnings; use Test2::Tools::Tiny; use Test2::API qw( context_do ); $SIG{__WARN__} = sub { context_do { shift->throw("oops\n"); } $_[0]; }; my $array_var = []; eval { warn "trigger warning" }; my $err = $@; like( $err, qr/oops/, "Got expected error" ); done_testing();
Upload File
Create Folder