⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
Test-File-1.993-0
/
t
/
View File Name :
test_dirs.t
use strict; use warnings; use Test::Builder::Tester; use Test::More 1; use Test::File; use File::Spec::Functions qw(catfile); require "./t/setup_common"; open FH, '>', catfile( qw(sub_dir subdir_file) ); close FH; test_out( 'ok 1 - sub_dir is a directory' ); test_out( 'ok 2 - sub_dir really is a directory' ); dir_exists_ok( 'sub_dir' ); dir_exists_ok( 'sub_dir', 'sub_dir really is a directory' ); test_test(); test_out( 'not ok 1 - bmoogle is a directory' ); test_diag( 'directory [bmoogle] does not exist' ); test_fail(+1); dir_exists_ok( 'bmoogle' ); test_test(); test_out( 'not ok 1 - readable is a directory' ); test_diag( 'file [readable] exists but is not a directory' ); test_fail(+1); dir_exists_ok( 'readable' ); test_test(); test_out( 'ok 1 - directory sub_dir contains file subdir_file' ); test_out( 'ok 2 - directory sub_dir really contains file subdir_file' ); dir_contains_ok( 'sub_dir', 'subdir_file' ); dir_contains_ok( 'sub_dir', 'subdir_file', 'directory sub_dir really contains file subdir_file' ); test_test(); test_out( 'not ok 1 - directory bmoogle contains file subdir_file' ); test_diag( 'directory [bmoogle] does not exist' ); test_fail(+1); dir_contains_ok( 'bmoogle', 'subdir_file' ); test_test(); test_out( 'not ok 1 - directory sub_dir contains file bmoogle' ); test_diag( 'file [bmoogle] does not exist in directory sub_dir' ); test_fail(+1); dir_contains_ok( 'sub_dir', 'bmoogle' ); test_test(); done_testing();