模块 Test::Unit::TestResultPendingSupport
属性
pendings[R]
公共实例方法
add_pending(pending) 点击以切换源代码
记录一个 Test::Unit::Pending
。
# File test-unit-3.6.7/lib/test/unit/pending.rb, line 131 def add_pending(pending) @pendings << pending notify_fault(pending) notify_changed end
pending_count() 点击以切换源代码
返回此 TestResult
已记录的挂起项的数量。
# File test-unit-3.6.7/lib/test/unit/pending.rb, line 139 def pending_count @pendings.size end
私有实例方法
initialize_containers() 点击以切换源代码
调用超类方法
# File test-unit-3.6.7/lib/test/unit/pending.rb, line 144 def initialize_containers super @pendings = [] @summary_generators << :pending_summary end
pending_summary() 点击以切换源代码
# File test-unit-3.6.7/lib/test/unit/pending.rb, line 150 def pending_summary "#{pending_count} pendings" end