Class: Roby::Test::ExecutionExpectations::Quarantine
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, #unachievable?
Constructor Details
#initialize(task, backtrace) ⇒ Quarantine
Returns a new instance of Quarantine.
1171
1172
1173
1174
1175
1176
1177
1178
1179
|
# File 'lib/roby/test/execution_expectations.rb', line 1171
def initialize(task, backtrace)
super(backtrace)
@task = task
@related_error_matcher =
QuarantinedTaskError
.match
.to_execution_exception_matcher
end
|
Instance Method Details
#relates_to_error?(error) ⇒ Boolean
1185
1186
1187
|
# File 'lib/roby/test/execution_expectations.rb', line 1185
def relates_to_error?(error)
@related_error_matcher === error
end
|
1189
1190
1191
|
# File 'lib/roby/test/execution_expectations.rb', line 1189
def to_s
"#{@task} should be quarantined"
end
|
#update_match(_propagation_info) ⇒ Object
1181
1182
1183
|
# File 'lib/roby/test/execution_expectations.rb', line 1181
def update_match(_propagation_info)
@task.quarantined?
end
|