class Roby::Test::ExecutionExpectations::EmitGenerator
Attributes
generator[R]
Public Class Methods
new(generator, backtrace)
click to toggle source
Calls superclass method
Roby::Test::ExecutionExpectations::Expectation::new
# File lib/roby/test/execution_expectations.rb, line 809 def initialize(generator, backtrace) super(backtrace) @generator = generator @related_error_matcher = Queries::LocalizedErrorMatcher.new. with_origin(@generator). to_execution_exception_matcher end
Public Instance Methods
explain_unachievable(propagation_info)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 835 def explain_unachievable(propagation_info) @generator.unreachability_reason end
relates_to_error?(error)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 839 def relates_to_error?(error) @related_error_matcher === error end
return_object()
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 827 def return_object @emitted_events.first end
to_s()
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 817 def to_s "#{@generator} should be emitted" end
unachievable?(propagation_info)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 831 def unachievable?(propagation_info) @generator.unreachable? end
update_match(propagation_info)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 821 def update_match(propagation_info) @emitted_events = propagation_info.emitted_events. find_all { |ev| ev.generator == @generator } !@emitted_events.empty? end