ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Test-Warnings-0.033-0/examples
/
home
.cpan
build
Test-Warnings-0.033-0
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
no_plan.t
575 B
chmod
View
DL
Edit
Rename
Delete
sub.t
279 B
chmod
View
DL
Edit
Rename
Delete
synopsis_1.t
186 B
chmod
View
DL
Edit
Rename
Delete
synopsis_2.t
331 B
chmod
View
DL
Edit
Rename
Delete
test_nowarnings.t
109 B
chmod
View
DL
Edit
Rename
Delete
test_warning_contents.t
713 B
chmod
View
DL
Edit
Rename
Delete
warning_like.t
698 B
chmod
View
DL
Edit
Rename
Delete
with_done_testing.t
695 B
chmod
View
DL
Edit
Rename
Delete
with_plan.t
652 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Test-Warnings-0.033-0/examples/test_warning_contents.t
use strict; use warnings; # this test demonstrates that warnings can be captured and tested, and other # expected warnings can be whitelisted, to allow the had-no-warnings test not # to fail use Test::More tests => 2; use Test::Warnings ':all'; use Test::Deep; my @lines; my @warnings = warnings { warn 'testing 1 2 3'; push @lines, __LINE__; warn 'another warning'; push @lines, __LINE__; }; my $file = __FILE__; cmp_deeply( \@warnings, [ "testing 1 2 3 at $file line $lines[0].\n", "another warning at $file line $lines[1].\n", ], 'successfully captured all warnings', ); # make these warnings visible allow_warnings; warn $_ foreach @warnings; allow_warnings(0);
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply