Class: Roby::Test::ExecutionExpectations::Expectation

Inherits:
Object
  • Object
show all
Defined in:
lib/roby/test/execution_expectations.rb

Overview

Null implementation of an expectation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backtrace) ⇒ Expectation

Returns a new instance of Expectation.



675
676
677
# File 'lib/roby/test/execution_expectations.rb', line 675

def initialize(backtrace)
    @backtrace = backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



673
674
675
# File 'lib/roby/test/execution_expectations.rb', line 673

def backtrace
  @backtrace
end

Instance Method Details

#explain_unachievable(propagation_info) ⇒ Object



688
689
690
# File 'lib/roby/test/execution_expectations.rb', line 688

def explain_unachievable(propagation_info)
    nil
end

#relates_to_error?(error) ⇒ Boolean

Returns:

  • (Boolean)


691
692
693
# File 'lib/roby/test/execution_expectations.rb', line 691

def relates_to_error?(error)
    false
end

#unachievable?(propagation_info) ⇒ Boolean

Returns:

  • (Boolean)


685
686
687
# File 'lib/roby/test/execution_expectations.rb', line 685

def unachievable?(propagation_info)
    false
end

#update_match(propagation_info) ⇒ Object

Verifies whether the expectation is met at this point

This method is meant to update



682
683
684
# File 'lib/roby/test/execution_expectations.rb', line 682

def update_match(propagation_info)
    true
end