Sha256: 03a1893449aef7ad180e4aa456accf9a0c6ad40fe56baf23c6ee0098b2d1d86c

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 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.upcase
            @results << flag
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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