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.48.3 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.48.2 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.48.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.48.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.47.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.46.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.46.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.45.4 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.45.3 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.45.2 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.45.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.45.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.44.1 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.44.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.43.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.42.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.41.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.40.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.31.0 lib/origen_testers/atp/processors/extract_set_flags.rb
origen_testers-0.30.0 lib/origen_testers/atp/processors/extract_set_flags.rb