模块 Test::Unit::TestResultOmissionSupport

属性

omissions[R]

公共实例方法

add_omission(omission) 点击切换源代码

记录一个 Test::Unit::Omission

# File test-unit-3.6.7/lib/test/unit/omission.rb, line 174
def add_omission(omission)
  @omissions << omission
  notify_fault(omission)
  notify_changed
end
omission_count() 点击切换源代码

返回此 TestResult 记录的省略数量。

# File test-unit-3.6.7/lib/test/unit/omission.rb, line 182
def omission_count
  @omissions.size
end

私有实例方法

initialize_containers() 点击切换源代码
调用超类方法
# File test-unit-3.6.7/lib/test/unit/omission.rb, line 187
def initialize_containers
  super
  @omissions = []
  @summary_generators << :omission_summary
end
omission_summary() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/omission.rb, line 193
def omission_summary
  "#{omission_count} omissions"
end