Sha256: 8a5aa5a6a8618542891601a82144ba77c0a343d42dc2fa8fa55fc6911bf06c5b

Contents?: true

Size: 534 Bytes

Versions: 6

Compression:

Stored size: 534 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

6 entries across 6 versions & 1 rubygems

Version Path
origen_testers-0.11.1 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb
origen_testers-0.11.0 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb
origen_testers-0.9.9 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb
origen_testers-0.9.8 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb
origen_testers-0.9.7 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb
origen_testers-0.9.6 lib/origen_testers/smartest_based_tester/base/processors/extract_set_variables.rb