Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
ruby /
vendor_ruby /
test /
unit /
Delete
Unzip
Name
Size
Permission
Date
Action
collector
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
runner
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
ui
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
util
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
assertion-failed-error.rb
748
B
-rwxrwxrwx
2016-03-01 23:55
assertions.rb
72.92
KB
-rwxrwxrwx
2016-03-01 23:55
attribute-matcher.rb
431
B
-rwxrwxrwx
2016-03-01 23:55
attribute.rb
4.59
KB
-rwxrwxrwx
2016-03-01 23:55
auto-runner-loader.rb
379
B
-rwxrwxrwx
2016-03-01 23:55
autorunner.rb
15.8
KB
-rwxrwxrwx
2016-03-01 23:55
code-snippet-fetcher.rb
1.49
KB
-rwxrwxrwx
2016-03-01 23:55
collector.rb
1.81
KB
-rwxrwxrwx
2016-03-01 23:55
color-scheme.rb
7.12
KB
-rwxrwxrwx
2016-03-01 23:55
color.rb
2.95
KB
-rwxrwxrwx
2016-03-01 23:55
data.rb
8.34
KB
-rwxrwxrwx
2016-03-01 23:55
diff.rb
25.4
KB
-rwxrwxrwx
2016-03-01 23:55
error.rb
3.61
KB
-rwxrwxrwx
2016-03-01 23:55
exception-handler.rb
2.7
KB
-rwxrwxrwx
2016-03-01 23:55
failure.rb
5.09
KB
-rwxrwxrwx
2016-03-01 23:55
fault-location-detector.rb
2.72
KB
-rwxrwxrwx
2016-03-01 23:55
fixture.rb
8.88
KB
-rwxrwxrwx
2016-03-01 23:55
notification.rb
3.34
KB
-rwxrwxrwx
2016-03-01 23:55
omission.rb
4.5
KB
-rwxrwxrwx
2016-03-01 23:55
pending.rb
3.61
KB
-rwxrwxrwx
2016-03-01 23:55
priority.rb
4.39
KB
-rwxrwxrwx
2016-03-01 23:55
test-suite-creator.rb
2.69
KB
-rwxrwxrwx
2016-03-01 23:55
testcase.rb
22.49
KB
-rwxrwxrwx
2016-03-01 23:55
testresult.rb
3.09
KB
-rwxrwxrwx
2016-03-01 23:55
testsuite.rb
4.8
KB
-rwxrwxrwx
2016-03-01 23:55
version.rb
58
B
-rwxrwxrwx
2016-03-01 23:55
Save
Rename
module Test module Unit module Collector def initialize @filters = [] end def filter=(filters) @filters = case(filters) when Proc [filters] when Array filters end end def add_suite(destination, suite) to_delete = suite.tests.find_all do |test| test.is_a?(TestCase) and !include?(test) end suite.delete_tests(to_delete) destination << suite unless suite.empty? end def add_test_cases(suite, test_cases) children_map = {} test_cases.each do |test_case| ancestor_classes = test_case.ancestors.find_all do |ancestor| ancestor.is_a?(Class) end parent = ancestor_classes[1] children_map[parent] ||= [] children_map[parent] << test_case end root_test_cases = children_map.keys - test_cases root_test_cases.each do |root_test_case| add_test_case(suite, root_test_case, children_map) end end def include?(test) return true if(@filters.empty?) @filters.each do |filter| return false if filter[test] == false end true end def sort(suites) suites.sort_by do |suite| [suite.priority, suite.name || suite.to_s] end end private def add_test_case(suite, test_case, children_map) children = children_map[test_case] return if children.nil? sub_suites = [] children.each do |child| sub_suite = child.suite add_test_case(sub_suite, child, children_map) add_suite(sub_suites, sub_suite) end sort(sub_suites).each do |sub_suite| suite << sub_suite end end end end end