����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
use Test::More;
use File::Spec;
use_ok( 'Test::File' );
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Try it when it should work
subtest file_spec_unix => sub {
my $module = 'File::Spec::Unix';
use_ok( $module );
local @File::Spec::ISA = ( $module );
my $file = '/foo/bar/baz';
my $normalized = Test::File::_normalize( $file );
is( $normalized, $file, "Normalize gives same path for unix" );
};
subtest file_spec_win32 => sub {
my $module = 'File::Spec::Win32';
use_ok( $module );
local @File::Spec::ISA = ( $module );
my $file = '/foo/bar/baz';
my $normalized = Test::File::_normalize( $file );
isnt( $normalized, $file, "Normalize gives different path for Win32" );
is( $normalized, '\foo\bar\baz', "Normalize gives right path for Win32" );
};
subtest file_spec_mac => sub {
my $module = 'File::Spec::Mac';
use_ok( $module );
local @File::Spec::ISA = ( $module );
my $file = '/foo/bar/baz';
my $normalized = Test::File::_normalize( $file );
isnt( $normalized, $file, "Normalize gives different path for Mac" );
is( $normalized, 'foo:bar:baz', "Normalize gives right path for Mac" );
};
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Try it when it shouldn't work
subtest normalize_undef => sub {
my $normalized = Test::File::_normalize( undef );
ok( ! defined $normalized, "Passing undef fails" );
};
subtest normalize_empty => sub {
my $normalized = Test::File::_normalize( '' );
ok( defined $normalized, "Passing empty string returns defined value" );
is( $normalized, '', "Passing empty string returns empty string" );
ok( ! $normalized, "Passing empty string fails" );
};
subtest normalize_empty => sub {
my $normalized = Test::File::_normalize();
ok( ! defined $normalized, "Passing nothing fails" );
};
done_testing();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| rt | Folder | 0755 |
|
|
| dm_skeleton.t | File | 1.51 KB | 0644 |
|
| file_contains.t | File | 5.05 KB | 0644 |
|
| file_contains_encoded.t | File | 2.96 KB | 0644 |
|
| file_contains_utf8.t | File | 2.97 KB | 0644 |
|
| file_mtime.t | File | 3.02 KB | 0644 |
|
| file_sizes.t | File | 4.71 KB | 0644 |
|
| line_counters.t | File | 5.21 KB | 0644 |
|
| link_counts.t | File | 2.47 KB | 0644 |
|
| links.t | File | 5.23 KB | 0644 |
|
| load.t | File | 158 B | 0644 |
|
| normalize.t | File | 1.81 KB | 0644 |
|
| obviously_non_multi_user.t | File | 1.53 KB | 0644 |
|
| owner.t | File | 5.75 KB | 0644 |
|
| pod.t | File | 129 B | 0644 |
|
| pod_coverage.t | File | 161 B | 0644 |
|
| setup_common | File | 1.89 KB | 0644 |
|
| test_dirs.t | File | 1.42 KB | 0644 |
|
| test_files.t | File | 9.99 KB | 0644 |
|
| test_manifest | File | 282 B | 0644 |
|
| win32.t | File | 929 B | 0644 |
|