Module: OrigenTesters::ProgramGenerators
- Extended by:
- ActiveSupport::Concern
- Included in:
- BasicTestSetups, NoInterface, Test::CustomTestInterface
- Defined in:
- lib/origen_testers/program_generators.rb
Overview
Include this module to create an interface that supports multiple tester types.
This module will expose generators for all test platforms supported by the Testers plugin.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
Instance Method Summary collapse
- #_load_generator ⇒ Object
- #initialize(options = {}) ⇒ Object
- #pre_initialize(options = {}) ⇒ Object private
- #tester ⇒ Object
Instance Method Details
#_load_generator ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/origen_testers/program_generators.rb', line 45 def _load_generator if tester.v93k? class << self; include OrigenTesters::V93K::Generator; end elsif tester.j750_hpt? class << self; include OrigenTesters::J750_HPT::Generator; end elsif tester.j750? class << self; include OrigenTesters::J750::Generator; end elsif tester.ultraflex? class << self; include OrigenTesters::UltraFLEX::Generator; end elsif defined? tester.class::TEST_PROGRAM_GENERATOR class << self; include tester.class::TEST_PROGRAM_GENERATOR; end else fail "The OrigenTesters::ProgramGenerators module does not support #{tester.class}!" end end |
#initialize(options = {}) ⇒ Object
38 39 |
# File 'lib/origen_testers/program_generators.rb', line 38 def initialize( = {}) end |
#pre_initialize(options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
34 35 36 |
# File 'lib/origen_testers/program_generators.rb', line 34 def pre_initialize( = {}) _load_generator end |
#tester ⇒ Object
41 42 43 |
# File 'lib/origen_testers/program_generators.rb', line 41 def tester Origen.tester end |