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.
1190
1191
1192
1193
|
# File 'lib/roby/test/execution_expectations.rb', line 1190
def initialize(generator, backtrace)
super(backtrace)
@generator = generator
end
|
Instance Method Details
#return_object ⇒ Object
1199
1200
1201
|
# File 'lib/roby/test/execution_expectations.rb', line 1199
def return_object
@generator.unreachability_reason
end
|
1203
1204
1205
|
# File 'lib/roby/test/execution_expectations.rb', line 1203
def to_s
"#{@generator} should be unreachable"
end
|
#update_match(_propagation_info) ⇒ Object
1195
1196
1197
|
# File 'lib/roby/test/execution_expectations.rb', line 1195
def update_match(_propagation_info)
@generator.unreachable?
end
|