Class: Roby::Test::ExecutionExpectations::BecomeUnreachable

Inherits:
Expectation show all
Defined in:
lib/roby/test/execution_expectations.rb

Instance Attribute Summary

Attributes inherited from Expectation

#backtrace

Instance Method Summary collapse

Methods inherited from Expectation

#explain_unachievable, #relates_to_error?, #unachievable?

Constructor Details

#initialize(generator, backtrace) ⇒ BecomeUnreachable

Returns a new instance of BecomeUnreachable.



922
923
924
925
# File 'lib/roby/test/execution_expectations.rb', line 922

def initialize(generator, backtrace)
    super(backtrace)
    @generator = generator
end

Instance Method Details

#return_objectObject



931
932
933
# File 'lib/roby/test/execution_expectations.rb', line 931

def return_object
    @generator.unreachability_reason
end

#to_sObject



935
936
937
# File 'lib/roby/test/execution_expectations.rb', line 935

def to_s
    "#{@generator} should be unreachable"
end

#update_match(propagation_info) ⇒ Object



927
928
929
# File 'lib/roby/test/execution_expectations.rb', line 927

def update_match(propagation_info)
    @generator.unreachable?
end