Sha256: e2ef0e6ea0da473aa9517eba2e404f3d5b41948f5c0564d4c455658849e4d47d
Contents?: true
Size: 778 Bytes
Versions: 15
Compression:
Stored size: 778 Bytes
Contents
module DeepTest module Test class WorkResult < ::Test::Unit::TestResult attr_reader :identifier attr_accessor :output def initialize(identifier) super() @identifier = identifier end def add_to(result) @failures.each {|e| result.add_failure(e)} @errors.each do |e| e.resolve_marshallable_exception result.add_error(e) end assertion_count.times {result.add_assertion} run_count.times {result.add_run} end def add_error(error) error.make_exception_marshallable super(error) end def failed_due_to_deadlock? @errors.any? && DeepTest::DeadlockDetector.due_to_deadlock?(@errors.last) end end end end
Version data entries
15 entries across 15 versions & 4 rubygems