Sha256: aa0c1d7019b9961b7f52694635b4c36a2b5e641fc4e14b81a15eff23a11a1e80

Contents?: true

Size: 409 Bytes

Versions: 40

Compression:

Stored size: 409 Bytes

Contents

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

      def on_set_flag(node)
        flag = node.value
        @results << flag
      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/extract_set_flags.rb
origen_testers-0.52.7 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.52.6 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.52.5 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.52.4 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.52.3 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.52.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.52.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.51.5 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.51.4 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.51.3 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.51.2 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.51.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.51.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.50.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.49.4 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.49.3 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.49.2 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.49.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.49.0 lib/origen_testers/atp/processors/extract_set_flags.rb