ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Test-File-1.993-0/t
/
home
.cpan
build
Test-File-1.993-0
t
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
rt
-
chmod
Open
Rename
Delete
dm_skeleton.t
1.51 MB
chmod
View
DL
Edit
Rename
Delete
file_contains.t
5.05 MB
chmod
View
DL
Edit
Rename
Delete
file_contains_encoded.t
2.96 MB
chmod
View
DL
Edit
Rename
Delete
file_contains_utf8.t
2.97 MB
chmod
View
DL
Edit
Rename
Delete
file_mtime.t
3.02 MB
chmod
View
DL
Edit
Rename
Delete
file_sizes.t
4.71 MB
chmod
View
DL
Edit
Rename
Delete
line_counters.t
5.21 MB
chmod
View
DL
Edit
Rename
Delete
links.t
5.23 MB
chmod
View
DL
Edit
Rename
Delete
link_counts.t
2.47 MB
chmod
View
DL
Edit
Rename
Delete
load.t
158 B
chmod
View
DL
Edit
Rename
Delete
normalize.t
1.81 MB
chmod
View
DL
Edit
Rename
Delete
obviously_non_multi_user.t
1.53 MB
chmod
View
DL
Edit
Rename
Delete
owner.t
5.75 MB
chmod
View
DL
Edit
Rename
Delete
pod.t
129 B
chmod
View
DL
Edit
Rename
Delete
pod_coverage.t
161 B
chmod
View
DL
Edit
Rename
Delete
setup_common
1.89 MB
chmod
View
DL
Edit
Rename
Delete
test_dirs.t
1.42 MB
chmod
View
DL
Edit
Rename
Delete
test_files.t
9.99 MB
chmod
View
DL
Edit
Rename
Delete
test_manifest
282 B
chmod
View
DL
Edit
Rename
Delete
win32.t
929 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Test-File-1.993-0/t/link_counts.t
use strict; use Test::Builder::Tester; use Test::More 1; use_ok( 'Test::File' ); require "./t/setup_common"; # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Subroutines are defined subtest defined_subs => sub { my @subs = qw( link_count_is_ok link_count_gt_ok link_count_lt_ok ); foreach my $sub ( @subs ) { no strict 'refs'; ok( defined &{$sub}, "$sub is defined" ); } }; # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Stuff that should work (single link) my $test_name = "This is my test name"; my $readable = 'readable'; my $readable_sym = 'readable_sym'; my $not_there = 'not_there'; my $dangle_sym = 'dangle_sym'; subtest should_work => sub { test_out( "ok 1 - $test_name" ); test_out( "ok 2 - readable has a link count of [100]" ); test_out( "ok 3 - $test_name" ); test_out( "ok 4 - readable has a link count of [0]" ); test_out( "ok 5 - $test_name" ); link_count_lt_ok( $readable, 100, $test_name ); link_count_lt_ok( $readable, 100 ); link_count_gt_ok( $readable, 0, $test_name ); link_count_gt_ok( $readable, 0 ); link_count_is_ok( $readable, 1, $test_name ); test_test(); test_out( "ok 1 - $readable has a link count of [1]" ); link_count_is_ok( $readable, 1 ); test_test(); done_testing(); }; # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Stuff that should work (multipe links) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Stuff that should fail (missing file) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # subtest bad_count => sub { test_out( "not ok 1 - $test_name" ); test_diag( "file [$readable] points has [1] links: expected [100]\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); link_count_is_ok( $readable, 100, $test_name ); test_test(); test_out( "not ok 1 - $test_name" ); test_diag( "file [$readable] points has [1] links: expected less than [0]\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); link_count_lt_ok( $readable, 0, $test_name ); test_test(); test_out( "not ok 1 - $test_name" ); test_diag( "file [readable] points has [1] links: expected more than [100]\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); link_count_gt_ok( $readable, 100, $test_name ); test_test(); done_testing(); }; done_testing();
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply