Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Test /
Unit /
[ HOME SHELL ]
Name
Size
Permission
Action
Assertion
[ DIR ]
drwxr-xr-x
Runner
[ DIR ]
drwxr-xr-x
Assert.pm
20.71
KB
-rw-r--r--
Assertion.pm
1.98
KB
-rw-r--r--
Debug.pm
1.78
KB
-rw-r--r--
Decorator.pm
1.34
KB
-rw-r--r--
Error.pm
1.23
KB
-rw-r--r--
Exception.pm
1.75
KB
-rw-r--r--
Failure.pm
868
B
-rw-r--r--
HarnessUnit.pm
2.86
KB
-rw-r--r--
Listener.pm
2.01
KB
-rw-r--r--
Loader.pm
5.34
KB
-rw-r--r--
Procedural.pm
5.75
KB
-rw-r--r--
Result.pm
5.42
KB
-rw-r--r--
Runner.pm
1.93
KB
-rw-r--r--
Setup.pm
1.3
KB
-rw-r--r--
Test.pm
3.09
KB
-rw-r--r--
TestCase.pm
11.27
KB
-rw-r--r--
TestRunner.pm
5.64
KB
-rw-r--r--
TestSuite.pm
8.22
KB
-rw-r--r--
TkTestRunner.pm
18.07
KB
-rw-r--r--
Tutorial.pm
1.19
KB
-rw-r--r--
UnitHarness.pm
5.25
KB
-rw-r--r--
Warning.pm
783
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : HarnessUnit.pm
package Test::Unit::HarnessUnit; # this is a test runner which outputs in the same # format that Test::Harness expects. use strict; use base qw(Test::Unit::Runner); use Test::Unit::TestSuite; use Test::Unit::Loader; sub new { my $class = shift; my ($filehandle) = @_; # should really use the IO::Handle package here. # this is very ugly. $filehandle = \*STDOUT unless $filehandle; bless { _Print_stream => $filehandle }, $class; } sub print_stream { my $self = shift; return $self->{_Print_stream}; } sub _print { my $self = shift; my (@args) = @_; $self->{_Print_stream}->print( @args); } sub start_test { my $self=shift; my $test=shift; } sub not_ok { my $self = shift; my ($test, $exception) = @_; $self->_print("\nnot ok ERROR ", $test->name(), "\n$exception\n"); } sub ok { my $self = shift; my ($test) = @_; $self->_print("ok PASS " . $test->name() . "\n"); } sub add_error { my $self = shift; $self->not_ok(@_); } sub add_failure { my $self = shift; $self->not_ok(@_); } sub add_pass { my $self = shift; $self->ok(@_); } sub end_test { my $self = shift; my ($test) = @_; } sub do_run { my $self = shift; my ($suite) = @_; my $result = $self->create_test_result(); $result->add_listener($self); $suite->run($result, $self); } sub main { my $self = shift; my $a_test_runner = __PACKAGE__->new; $a_test_runner->start(@_); } sub run { my $self = shift; my ($class) = @_; my $a_test_runner = Test::Unit::TestRunner->new(); if ($class->isa("Test::Unit::Test")) { $a_test_runner->do_run($class, 0); } else { $a_test_runner->do_run(Test::Unit::TestSuite->new($class), 0); } } sub start { my $self = shift; my (@args) = @_; my $test_case = ""; my $wait = 0; my $suite = Test::Unit::Loader::load(@args); if ($suite) { my $count=$suite->count_test_cases(); $self->_print("STARTING TEST RUN\n1..$count\n"); $self->do_run($suite); exit(0); } else { $self->_print("Invalid argument to test runner: $args[0]\n"); exit(1); } } 1; __END__ =head1 NAME Test::Unit::HarnessUnit - unit testing framework helper class =head1 SYNOPSIS This class is not intended to be used directly =head1 DESCRIPTION This is a test runner which outputs in the same format that Test::Harness expects. =head1 AUTHOR Copyright (c) 2000-2002, 2005 the PerlUnit Development Team (see L<Test::Unit> or the F<AUTHORS> file included in this distribution). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 SEE ALSO =over 4 =item * L<Test::Unit::UnitHarness> =item * L<Test::Unit::TestRunner> =item * L<Test::Unit::TkTestRunner> =back =cut
Close