Module: OrigenTesters::ProgramGenerators
- Extended by:
- ActiveSupport::Concern
- Included in:
- BasicTestSetups
- 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
- PLATFORMS =
[J750, J750_HPT, UltraFLEX, V93K]
Instance Method Summary collapse
Instance Method Details
#_load_generator ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/origen_testers/program_generators.rb', line 41 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 else fail "The Testers::ProgramGenerators module does not support #{tester.class}!" end end |
#initialize(options = {}) ⇒ Object
34 35 |
# File 'lib/origen_testers/program_generators.rb', line 34 def initialize( = {}) end |
#tester ⇒ Object
37 38 39 |
# File 'lib/origen_testers/program_generators.rb', line 37 def tester Origen.tester end |