class Roby::Test::ExecutionExpectations::Unmet

Public Class Methods

new(expectations_with_explanations, propagation_info) click to toggle source
# File lib/roby/test/execution_expectations.rb, line 328
def initialize(expectations_with_explanations, propagation_info)
    @expectations = expectations_with_explanations
    @propagation_info = propagation_info
end

Public Instance Methods

each_original_exception() { |e| ... } click to toggle source
# File lib/roby/test/execution_expectations.rb, line 333
def each_original_exception
    return enum_for(__method__) if !block_given?

    @expectations.each do |_, e|
        if e.kind_of?(Exception)
            yield(e)
        end
    end
end
pretty_print(pp) click to toggle source
# File lib/roby/test/execution_expectations.rb, line 343
def pretty_print(pp)
    pp.text "#{@expectations.size} unmet expectations"
    @expectations.each do |exp, explanation|
        pp.breakable
        exp.pretty_print(pp)
        if explanation
            pp.text ", but did not because of "
            explanation.pretty_print(pp)
        end
    end
    if !@propagation_info.empty?
        pp.breakable
        @propagation_info.pretty_print(pp)
    end
end
to_s() click to toggle source
# File lib/roby/test/execution_expectations.rb, line 359
def to_s
    PP.pp(self, "", 1).strip
end