Sha256: bc1603cc70896ac011570769a6f025c8c12a9805eaa9d8746c91a2060367abae

Contents?: true

Size: 784 Bytes

Versions: 2

Compression:

Stored size: 784 Bytes

Contents

require 'pathname'
module OrigenTesters
  module SmartestBasedTester
    class Base
      class PatternCompiler
        include OrigenTesters::Generator

        attr_accessor :filename, :part_patterns, :id

        def initialize(flow = nil)
          @part_patterns = []
        end

        def subroutines
          (references[:subroutine][:all] + references[:subroutine][:ate]).map do |p|
            p.strip.sub(/\..*/, '')
          end.uniq.sort
        end

        def patterns
          (references[:main][:all] + references[:main][:ate]).map do |p|
            p.strip.sub(/\..*/, '')
          end.uniq.sort
        end

        def references
          Origen.interface.all_pattern_references[id]
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
origen_testers-0.13.2 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.10.0 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb