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
require "fileutils" module Test module Unit module Priority class << self def included(base) base.extend(ClassMethods) base.class_eval do setup :priority_setup, :before => :prepend teardown :priority_teardown, :after => :append end end @@enabled = false def enabled? @@enabled end def enable require "fileutils" require "tmpdir" @@enabled = true end def disable @@enabled = false end @@default = :normal def default @@default || :normal end def default=(default) @@default = default end def available_values Checker.available_priorities end end class Checker class << self def have_priority?(name) singleton_class = (class << self; self; end) singleton_class.method_defined?(priority_check_method_name(name)) end def need_to_run?(test) priority = test[:priority] || Priority.default if have_priority?(priority) __send__(priority_check_method_name(priority), test) else true end end def available_priorities methods(false).collect do |name| /\Arun_priority_(.+)\?\z/ =~ name.to_s $1 end.compact end def run_priority_must?(test) true end def run_priority_important?(test) rand > 0.1 end def run_priority_high?(test) rand > 0.3 end def run_priority_normal?(test) rand > 0.5 end def run_priority_low?(test) rand > 0.75 end def run_priority_never?(test) false end private def priority_check_method_name(priority_name) "run_priority_#{priority_name}?" end end attr_reader :test def initialize(test) @test = test end def setup FileUtils.rm_f(passed_file) end def teardown if @test.__send__(:passed?) FileUtils.touch(passed_file) else FileUtils.rm_f(passed_file) end end def need_to_run? !previous_test_success? or self.class.need_to_run?(@test) end private def previous_test_success? File.exist?(passed_file) end def result_dir components = [ ".test-result", escape_class_name(@test.class.name || "AnonymousTestCase"), escaped_method_name, ] parent_directories = [File.dirname($0), Dir.pwd] if Process.respond_to?(:uid) parent_directories << File.join(Dir.tmpdir, Process.uid.to_s) end parent_directories.each do |parent_directory| dir = File.expand_path(File.join(parent_directory, *components)) begin FileUtils.mkdir_p(dir) return dir rescue Errno::EACCES end end raise Errno::EACCES, parent_directories.join(", ") end def passed_file File.join(result_dir, "passed") end def escape_class_name(class_name) class_name.gsub(/(?:[: \\\/])/, "_") end def escaped_method_name @test.method_name.to_s.gsub(/(?:[: ]|[!?=]$)/) do |matched| case matched when ":" "_colon_" when " " "_" when "!" ".destructive" when "?" ".predicate" when "=" ".equal" end end end end module ClassMethods def priority(name, *tests) unless Checker.have_priority?(name) raise ArgumentError, "unknown priority: #{name}" end attribute(:priority, name, {:keep => true}, *tests) end end def priority_setup return unless Priority.enabled? Checker.new(self).setup end def priority_teardown return unless Priority.enabled? Checker.new(self).teardown end end end end