ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Path-Tiny-0.146-0/t
/
home
.cpan
build
Path-Tiny-0.146-0
t
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
data
-
chmod
Open
Rename
Delete
fakelib
-
chmod
Open
Rename
Delete
lib
-
chmod
Open
Rename
Delete
00-report-prereqs.dd
4.52 MB
chmod
View
DL
Edit
Rename
Delete
00-report-prereqs.t
5.88 MB
chmod
View
DL
Edit
Rename
Delete
basename.t
880 B
chmod
View
DL
Edit
Rename
Delete
basic.t
9.06 MB
chmod
View
DL
Edit
Rename
Delete
children.t
1.24 MB
chmod
View
DL
Edit
Rename
Delete
chmod.t
1020 B
chmod
View
DL
Edit
Rename
Delete
digest.t
1.25 MB
chmod
View
DL
Edit
Rename
Delete
exception.t
1.26 MB
chmod
View
DL
Edit
Rename
Delete
exports.t
674 B
chmod
View
DL
Edit
Rename
Delete
filesystem.t
13.82 MB
chmod
View
DL
Edit
Rename
Delete
has_same_bytes.t
2.04 MB
chmod
View
DL
Edit
Rename
Delete
input_output.t
18.31 MB
chmod
View
DL
Edit
Rename
Delete
input_output_no_PU_UU.t
579 B
chmod
View
DL
Edit
Rename
Delete
input_output_no_UU.t
566 B
chmod
View
DL
Edit
Rename
Delete
locking.t
1.37 MB
chmod
View
DL
Edit
Rename
Delete
mkdir.t
1008 B
chmod
View
DL
Edit
Rename
Delete
mkpath.t
947 B
chmod
View
DL
Edit
Rename
Delete
mutable_tree_while_iterating.t
1.43 MB
chmod
View
DL
Edit
Rename
Delete
normalize.t
898 B
chmod
View
DL
Edit
Rename
Delete
overloading.t
534 B
chmod
View
DL
Edit
Rename
Delete
parent.t
3.06 MB
chmod
View
DL
Edit
Rename
Delete
README
214 B
chmod
View
DL
Edit
Rename
Delete
recurse.t
3.89 MB
chmod
View
DL
Edit
Rename
Delete
rel-abs.t
7.88 MB
chmod
View
DL
Edit
Rename
Delete
sig_die.t
533 B
chmod
View
DL
Edit
Rename
Delete
size.t
4.76 MB
chmod
View
DL
Edit
Rename
Delete
subsumes.t
3.16 MB
chmod
View
DL
Edit
Rename
Delete
symlinks.t
1.51 MB
chmod
View
DL
Edit
Rename
Delete
temp.t
4.99 MB
chmod
View
DL
Edit
Rename
Delete
visit.t
447 B
chmod
View
DL
Edit
Rename
Delete
zz-atomic.t
922 B
chmod
View
DL
Edit
Rename
Delete
zzz-spec.t
6.62 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Path-Tiny-0.146-0/t/temp.t
use 5.008001; use strict; use warnings; use Cwd; # hack around https://bugs.activestate.com/show_bug.cgi?id=104767 use Test::More 0.96; use File::Spec::Unix; use lib 't/lib'; use TestUtils qw/exception tempd/; use Path::Tiny; subtest "tempdir" => sub { my $tempdir = Path::Tiny->tempdir; isa_ok( $tempdir->cached_temp, 'File::Temp::Dir', "cached_temp" ); my $string = $tempdir->stringify; ok( $tempdir->exists, "tempdir exists" ); undef $tempdir; ok( !-e $string, "tempdir destroyed" ); }; subtest "tempfile" => sub { my $tempfile = Path::Tiny->tempfile; isa_ok( $tempfile->cached_temp, 'File::Temp', "cached_temp" ); my $string = $tempfile->stringify; ok( $tempfile->exists, "tempfile exists" ); undef $tempfile; ok( !-e $string, "tempfile destroyed" ); }; subtest "tempdir w/ TEMPLATE" => sub { my $tempdir = Path::Tiny->tempdir( TEMPLATE => "helloXXXXX" ); like( $tempdir, qr/hello/, "found template" ); }; subtest "tempfile w/ TEMPLATE" => sub { my $tempfile = Path::Tiny->tempfile( TEMPLATE => "helloXXXXX" ); like( $tempfile, qr/hello/, "found template" ); }; subtest "tempdir w/ leading template" => sub { my $tempdir = Path::Tiny->tempdir("helloXXXXX"); like( $tempdir, qr/hello/, "found template" ); }; subtest "tempfile w/ leading template" => sub { my $tempfile = Path::Tiny->tempfile("helloXXXXX"); like( $tempfile, qr/hello/, "found template" ); }; subtest "tempfile handle" => sub { my $tempfile = Path::Tiny->tempfile; my $fh = $tempfile->filehandle; is( ref $tempfile->[5], 'File::Temp', "cached File::Temp object" ); is( fileno $tempfile->[5], undef, "cached handle is closed" ); }; subtest "survives absolute" => sub { my $wd = tempd; my $tempdir = Path::Tiny->tempdir( DIR => '.' )->absolute; ok( -d $tempdir, "exists" ); }; subtest "realpath option" => sub { my $wd = tempd; my $tempdir = Path::Tiny->tempdir( { realpath => 1 }, DIR => '.' ); is( $tempdir, $tempdir->realpath, "tempdir has realpath" ); my $tempfile = Path::Tiny->tempfile( { realpath => 1 }, DIR => '.' ); is( $tempfile, $tempfile->realpath, "tempfile has realpath" ); }; subtest "cached_temp on non tempfile" => sub { my $path = path("abcdefg"); eval { $path->cached_temp }; like( $@, qr/has no cached File::Temp object/, "cached_temp error message" ); }; subtest "tempdir w/ leading template as instance method" => sub { my $wd = tempd; my $basedir = Path::Tiny->cwd; my $repodir = $basedir->child('whatever'); $repodir->remove_tree if $repodir->exists; $repodir->mkdir; my $tempdir = $repodir->tempdir("helloXXXXX"); like( $tempdir, qr/hello/, "found template" ); ok( scalar($repodir->children) > 0, 'something was created' ); my $basename = $tempdir->basename; ok( -d $repodir->child($basename), "right directory exists" ); }; subtest "tempdir w/ leading template as instance method" => sub { my $wd = tempd; my $basedir = Path::Tiny->cwd; my $repodir = $basedir->child('whatever'); $repodir->remove_tree if $repodir->exists; $repodir->mkdir; my $tempdir = $repodir->tempdir("helloXXXXX"); like( $tempdir, qr/hello/, "found template" ); ok( scalar($repodir->children) > 0, 'something was created' ); my $basename = $tempdir->basename; ok( -d $repodir->child($basename), "right directory exists" ); }; subtest "tempfile w/out leading template as instance method" => sub { my $wd = tempd; my $basedir = Path::Tiny->cwd; my $repodir = $basedir->child('whatever'); $repodir->remove_tree if $repodir->exists; $repodir->mkdir; my $tempfile = $repodir->tempfile( TEMPLATE => "helloXXXXX" ); like( $tempfile, qr/hello/, "found template" ); ok( scalar($repodir->children) > 0, 'something was created' ); my $basename = $tempfile->basename; ok( -e $repodir->child($basename), "right file exists" ); }; subtest "tempfile w/out leading template as instance method" => sub { my $wd = tempd; my $basedir = Path::Tiny->cwd; my $repodir = $basedir->child('whatever'); $repodir->remove_tree if $repodir->exists; $repodir->mkdir; my $tempfile = $repodir->tempfile( TEMPLATE => "helloXXXXX"); like( $tempfile, qr/hello/, "found template" ); ok( scalar($repodir->children) > 0, 'something was created' ); my $basename = $tempfile->basename; ok( -e $repodir->child($basename), "right file exists" ); }; subtest "tempfile, instance method, overridden DIR" => sub { my $wd = tempd; my $basedir = Path::Tiny->cwd; my $repodir = $basedir->child('whatever'); $repodir->remove_tree if $repodir->exists; $repodir->mkdir; my $bd = $basedir->stringify; my $tempfile = $repodir->tempfile("helloXXXXX", DIR => $bd); ok( $tempfile->parent ne $bd ), "DIR is overridden"; }; done_testing; # # This file is part of Path-Tiny # # This software is Copyright (c) 2014 by David Golden. # # This is free software, licensed under: # # The Apache License, Version 2.0, January 2004 #
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply