Sha256: 39a17d0b00f7448e8649863c49a2e4a8179e4b77c90ed6cd5202d81372b06a94

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

module OrigenTesters
  module SmartestBasedTester
    class Base
      module Processors
        # Extracts all runtime variables which are set within the given flow, returning
        # them in an array
        class ExtractSetVariables < ATP::Processor
          def run(nodes)
            @results = []
            process_all(nodes)
            @results.uniq
          end

          def on_set_run_flag(node)
            flag = node.value
            @results << flag
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
origen_testers-0.13.2 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb