Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.17.61.107
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby18 /
lib64 /
ruby /
1.8 /
test /
unit /
Delete
Unzip
Name
Size
Permission
Date
Action
collector
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
ui
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
util
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
assertionfailederror.rb
297
B
-rw-r--r--
2007-02-12 23:01
assertions.rb
17.8
KB
-rw-r--r--
2007-02-12 23:01
autorunner.rb
6.58
KB
-rw-r--r--
2007-02-25 14:08
collector.rb
873
B
-rw-r--r--
2007-02-12 23:01
error.rb
1.4
KB
-rw-r--r--
2007-02-12 23:01
failure.rb
1.29
KB
-rw-r--r--
2007-02-12 23:01
testcase.rb
4.44
KB
-rw-r--r--
2007-02-12 23:01
testresult.rb
2.03
KB
-rw-r--r--
2007-02-12 23:01
testsuite.rb
1.91
KB
-rw-r--r--
2007-02-12 23:01
Save
Rename
#-- # Author:: Nathaniel Talbott. # Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved. # License:: Ruby license. require 'test/unit/util/observable' module Test module Unit # Collects Test::Unit::Failure and Test::Unit::Error so that # they can be displayed to the user. To this end, observers # can be added to it, allowing the dynamic updating of, say, a # UI. class TestResult include Util::Observable CHANGED = "CHANGED" FAULT = "FAULT" attr_reader(:run_count, :assertion_count) # Constructs a new, empty TestResult. def initialize @run_count, @assertion_count = 0, 0 @failures, @errors = Array.new, Array.new end # Records a test run. def add_run @run_count += 1 notify_listeners(CHANGED, self) end # Records a Test::Unit::Failure. def add_failure(failure) @failures << failure notify_listeners(FAULT, failure) notify_listeners(CHANGED, self) end # Records a Test::Unit::Error. def add_error(error) @errors << error notify_listeners(FAULT, error) notify_listeners(CHANGED, self) end # Records an individual assertion. def add_assertion @assertion_count += 1 notify_listeners(CHANGED, self) end # Returns a string contain the recorded runs, assertions, # failures and errors in this TestResult. def to_s "#{run_count} tests, #{assertion_count} assertions, #{failure_count} failures, #{error_count} errors" end # Returns whether or not this TestResult represents # successful completion. def passed? return @failures.empty? && @errors.empty? end # Returns the number of failures this TestResult has # recorded. def failure_count return @failures.size end # Returns the number of errors this TestResult has # recorded. def error_count return @errors.size end end end end