模块 Test::Unit::Priority
公共类方法
available_values() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 38 def available_values Checker.available_priorities end
default() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 30 def default @@default || :normal end
default=(default) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 34 def default=(default) @@default = default end
disable() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 25 def disable @@enabled = false end
enable() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 19 def enable require "fileutils" require "tmpdir" @@enabled = true end
enabled?() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 15 def enabled? @@enabled end
included(base) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 5 def included(base) base.extend(ClassMethods) base.class_eval do setup :priority_setup, :before => :prepend teardown :priority_teardown, :after => :append end end
公共实例方法
priority_setup(&_) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 183 def priority_setup(&_) return unless Priority.enabled? Checker.new(self).setup end
priority_teardown() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/priority.rb, line 188 def priority_teardown return unless Priority.enabled? Checker.new(self).teardown end