class DeepTest::Spec::WorkResult
Attributes
identifier[R]
output[R]
Public Class Methods
new(identifier, error, output)
click to toggle source
# File lib/deep_test/spec/work_result.rb, line 6 def initialize(identifier, error, output) @identifier, @output = identifier, output @error = MarshallableExceptionWrapper.new error if error end
Public Instance Methods
==(other)
click to toggle source
# File lib/deep_test/spec/work_result.rb, line 15 def ==(other) identifier == other.identifier && @error == other.instance_variable_get(:@error) end
deadlock_result()
click to toggle source
# File lib/deep_test/spec/work_result.rb, line 28 def deadlock_result WorkResult.new(identifier, nil, '-deadlock-') end
error()
click to toggle source
# File lib/deep_test/spec/work_result.rb, line 11 def error @error.resolve if @error end
failed_due_to_deadlock?()
click to toggle source
# File lib/deep_test/spec/work_result.rb, line 20 def failed_due_to_deadlock? DeadlockDetector.due_to_deadlock?(@error) end
success?()
click to toggle source
# File lib/deep_test/spec/work_result.rb, line 24 def success? error.nil? || ::Spec::Example::ExamplePendingError === error end