Class: Roby::Test::ExecutionExpectations::BecomeUnreachable
Instance Attribute Summary
Attributes inherited from Expectation
#backtrace
Instance Method Summary
collapse
Methods inherited from Expectation
#explain_unachievable, #filter_result, #filter_result_with, #format_unachievable_explanation, #relates_to_error?, #unachievable?
Constructor Details
#initialize(generator, backtrace) ⇒ BecomeUnreachable
Returns a new instance of BecomeUnreachable.
1195
1196
1197
1198
|
# File 'lib/roby/test/execution_expectations.rb', line 1195
def initialize(generator, backtrace)
super(backtrace)
@generator = generator
end
|
Instance Method Details
#return_object ⇒ Object
1204
1205
1206
|
# File 'lib/roby/test/execution_expectations.rb', line 1204
def return_object
@generator.unreachability_reason
end
|
1208
1209
1210
|
# File 'lib/roby/test/execution_expectations.rb', line 1208
def to_s
"#{@generator} should be unreachable"
end
|
#update_match(_propagation_info) ⇒ Object
1200
1201
1202
|
# File 'lib/roby/test/execution_expectations.rb', line 1200
def update_match(_propagation_info)
@generator.unreachable?
end
|