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/links.t
use strict; use Test::Builder::Tester; use Test::More 1; use Test::File; my $can_symlink = Test::File::has_symlinks(); plan skip_all => "This system doesn't do symlinks" unless $can_symlink; require "./t/setup_common"; subtest dont_work_with_symlinks => sub { no warnings 'redefine'; local *Test::File::_no_symlinks_here = sub { 1 }; my @subs = qw( file_is_symlink_ok symlink_target_exists_ok symlink_target_dangles_ok symlink_target_is ); foreach my $sub ( @subs ) { no strict 'refs'; ok( defined &{$sub}, "$sub is defined" ); } foreach my $sub ( @subs ) { no strict 'refs'; test_out("ok 1 # skip $sub doesn't work on systems without symlinks"); &{$sub}(); test_test(); } done_testing(); }; 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'; my $s = ! $can_symlink ? "# skip file_is_symlink_ok doesn't work on systems without symlinks" : "- $readable_sym is a symlink"; subtest should_work => sub { file_exists_ok( $readable ); file_not_exists_ok( $readable_sym ); if( $can_symlink ) { symlink( $readable, $readable_sym ); open my($fh), ">", $not_there; close $fh; file_exists_ok( $not_there ); symlink( $not_there, $dangle_sym ); file_exists_ok( $readable_sym ); file_exists_ok( $dangle_sym ); file_is_symlink_ok( $dangle_sym ); unlink $not_there or fail( $! ); ok( ! -e $not_there, "$not_there has been removed" ); file_is_symlink_ok( $dangle_sym ); } else { pass(); } test_out( "ok 1 $s" ); file_is_symlink_ok( $readable_sym ); test_test(); test_out( "ok 1 - $test_name" ); file_is_symlink_ok( $readable_sym, $test_name ); test_test(); test_out( "ok 1 - $test_name" ); symlink_target_dangles_ok( $dangle_sym, $test_name ); test_test(); test_out( "ok 1 - $test_name" ); symlink_target_exists_ok( $readable_sym, $readable, $test_name ); test_test(); test_out( "ok 1 $s\n ok 2 - $test_name" ); symlink_target_exists_ok( $readable_sym, $readable ); symlink_target_is( $readable_sym, $readable, $test_name ); test_test(); done_testing(); }; subtest should_work => sub { ok( ! -l $readable, "$readable is not a symlink" ); ok( ! -l $not_there, "$not_there is not a symlink" ); test_out( "not ok 1 - $test_name" ); test_diag( "file [$readable] is not a symlink\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); file_is_symlink_ok( $readable, $test_name ); test_test(); test_out( "not ok 1 - $test_name" ); test_diag( "file [$not_there] is not a symlink\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); file_is_symlink_ok( $not_there, $test_name ); test_test(); test_out( "not ok 1 - $test_name" ); test_diag( "file [$not_there] is not a symlink\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); symlink_target_dangles_ok( $not_there, $test_name ); test_test(); test_out( "not ok 1 - $test_name" ); test_diag( "file [$readable] is not a symlink\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+5) . "." ); symlink_target_is( $readable, $readable_sym, $test_name ); test_test(); test_out( "not ok 1 - $readable is a symlink" ); test_diag( "file [$readable] is not a symlink\n" . " # Failed test '$readable is a symlink'\n" . " # at $0 line " . line_num(+5) . "." ); symlink_target_exists_ok( $readable ); test_test(); done_testing(); }; subtest bad_target_does_not_exist => sub { test_out( "not ok 1 $s" ); test_diag( "symlink [$readable_sym] points to non-existent target [$not_there]\n" . " # Failed test '$readable_sym is a symlink'\n" . " # at $0 line " . line_num(+5) . "." ); symlink_target_exists_ok( $readable_sym, $not_there ); test_test(); test_out( "not ok 1 - symlink $readable_sym points to $not_there" ); test_diag( " Failed test 'symlink $readable_sym points to $not_there'\n" . " # at $0 line " . line_num(+6) . ".\n" . " # got: $readable\n" . " # expected: $not_there" ); symlink_target_is( $readable_sym, $not_there ); test_test(); done_testing(); }; subtest bad_target_does_exists => sub { test_out( "not ok 1 $s" ); test_diag( "symlink [readable_sym] points to\n" . " # got: readable\n" . " # expected: writable\n" . " # Failed test 'readable_sym is a symlink'\n" . " # at $0 line " . line_num(+7) . "." ); symlink_target_exists_ok( $readable_sym, "writable" ); test_test(); done_testing(); }; subtest dangling_exists => sub { test_out( "not ok 1 - $test_name" ); test_out( "not ok 2 - readable_sym is a symlink" ); test_diag( "symlink [$readable_sym] points to existing file [$readable] but shouldn't\n" . " # Failed test '$test_name'\n" . " # at $0 line " . line_num(+10) . "." ); test_diag( "symlink [$readable_sym] points to existing file [$readable] but shouldn't\n" . " # Failed test 'readable_sym is a symlink'\n" . " # at $0 line " . line_num(+6) . "." ); symlink_target_dangles_ok( $readable_sym, $test_name ); symlink_target_dangles_ok( $readable_sym ); 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