模块 Test::Unit::TestResultFailureSupport
属性
failures[R]
公共实例方法
add_failure(failure) 点击切换源代码
记录一个 Test::Unit::Failure
。
# File test-unit-3.6.7/lib/test/unit/failure.rb, line 140 def add_failure(failure) @failures << failure notify_fault(failure) notify_changed end
failure_count() 点击切换源代码
返回此 TestResult
记录的失败次数。
# File test-unit-3.6.7/lib/test/unit/failure.rb, line 148 def failure_count @failures.size end
failure_occurred?() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/failure.rb, line 152 def failure_occurred? not @failures.empty? end
私有实例方法
failure_summary() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/failure.rb, line 164 def failure_summary "#{failure_count} failures" end
initialize_containers() 点击切换源代码
调用超类方法
# File test-unit-3.6.7/lib/test/unit/failure.rb, line 157 def initialize_containers super @failures = [] @summary_generators << :failure_summary @problem_checkers << :failure_occurred? end