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.
1133
1134
1135
1136
|
# File 'lib/roby/test/execution_expectations.rb', line 1133
def initialize(generator, backtrace)
super(backtrace)
@generator = generator
end
|
Instance Method Details
#return_object ⇒ Object
1142
1143
1144
|
# File 'lib/roby/test/execution_expectations.rb', line 1142
def return_object
@generator.unreachability_reason
end
|
1146
1147
1148
|
# File 'lib/roby/test/execution_expectations.rb', line 1146
def to_s
"#{@generator} should be unreachable"
end
|
#update_match(_propagation_info) ⇒ Object
1138
1139
1140
|
# File 'lib/roby/test/execution_expectations.rb', line 1138
def update_match(_propagation_info)
@generator.unreachable?
end
|