class Test::Unit::SubTestResult
属性
stop_tag[RW]
公共类方法
new(parent_test_result) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 12 def initialize(parent_test_result) @parent_test_result = parent_test_result @stop_tag = nil end
公共实例方法
add_assertion() 点击切换源代码
记录一个单独的断言。
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 26 def add_assertion @parent_test_result.add_assertion end
add_error(error) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 30 def add_error(error) @parent_test_result.add_error(error) end
add_failure(failure) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 34 def add_failure(failure) @parent_test_result.add_failure(failure) end
add_notification(notification) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 46 def add_notification(notification) @parent_test_result.add_notification(notification) end
add_omission(omission) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 42 def add_omission(omission) @parent_test_result.add_omission(omission) end
add_pass() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 21 def add_pass @parent_test_result.add_pass end
add_pending(pending) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 38 def add_pending(pending) @parent_test_result.add_pending(pending) end
add_run(result=self) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 17 def add_run(result=self) @parent_test_result.add_run(result) end
passed?() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 50 def passed? @parent_test_result.passed? end
stop() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 54 def stop throw @stop_tag end