Sha256: e91348f0f71362bc67f4057da7b57a484680b3fcc66d5f57185d9b0d3c2946b3

Contents?: true

Size: 815 Bytes

Versions: 38

Compression:

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

        def to_be_written?
          tester.smt7?
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
origen_testers-0.52.8 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.7 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.6 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.5 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.4 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.3 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.1 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.52.0 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.51.5 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.51.4 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.51.3 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.51.2 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.51.1 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.51.0 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.50.0 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.49.4 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.49.3 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.49.2 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.49.1 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb
origen_testers-0.49.0 lib/origen_testers/smartest_based_tester/base/pattern_compiler.rb