Sha256: 455ea0a0ac932612da060f7bbb074c7388f8298c07f3f63ed6d0d1ad6c79cb0b

Contents?: true

Size: 540 Bytes

Versions: 40

Compression:

Stored size: 540 Bytes

Contents

module OrigenTesters::ATP
  module Processors
    # Makes sure every test node has an on_fail/set_result node,
    class AddSetResult < Processor
      def run(node)
        process(node)
      end

      def on_test(node)
        node = node.ensure_node_present(:on_fail)
        node.updated(nil, process_all(node))
      end

      def on_on_fail(node)
        unless node.find(:continue)
          node = node.ensure_node_present(:set_result, 'fail')
        end
        node.updated(nil, process_all(node))
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
origen_testers-0.52.8 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.7 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.6 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.5 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.4 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.3 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.1 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.52.0 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.51.5 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.51.4 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.51.3 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.51.2 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.51.1 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.51.0 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.50.0 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.49.4 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.49.3 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.49.2 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.49.1 lib/origen_testers/atp/processors/add_set_result.rb
origen_testers-0.49.0 lib/origen_testers/atp/processors/add_set_result.rb