class Roby::Test::ExecutionExpectations::NotEmitGenerator
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 697 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 719 def explain_unachievable(propagation_info) @emitted_events.first end
relates_to_error?(error)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 723 def relates_to_error?(error) @related_error_matcher === error end
to_s()
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 705 def to_s "#{@generator} should not be emitted" end
unachievable?(propagation_info)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 715 def unachievable?(propagation_info) !@emitted_events.empty? end
update_match(propagation_info)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 709 def update_match(propagation_info) @emitted_events = propagation_info.emitted_events. find_all { |ev| ev.generator == @generator } @emitted_events.empty? end