Sha256: c56ac223caf45d7ab6c96e3911da85e07ca34b35e086d20095cafea292896f23

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 Bytes

Contents

module OrigenTesters
  class IGXLBasedTester
    class Parser
      class TestInstances < ::OrigenTesters::Parser::SearchableHash
        attr_accessor :parser

        def initialize(options = {})
          @parser = options[:parser]
        end

        def import(file)
          File.readlines(file).each do |line|
            l = TestInstance.new(line, parser: parser)
            self[l.name] = l if l.valid?
          end
        end

        def inspect
          "<TestInstances: #{size}>"
        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/igxl_based_tester/parser/test_instances.rb
origen_testers-0.10.0 lib/origen_testers/igxl_based_tester/parser/test_instances.rb