Class: OrigenTesters::SmartestBasedTester::V93K::Builder::Flow
- Inherits:
-
Object
- Object
- OrigenTesters::SmartestBasedTester::V93K::Builder::Flow
- Defined in:
- lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb
Overview
Responsible for modelling/building the contents of a V93K flow file
Instance Attribute Summary collapse
-
#binning ⇒ Object
readonly
Returns the value of attribute binning.
-
#declarations ⇒ Object
readonly
Returns the value of attribute declarations.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#hardware_bin_descriptions ⇒ Object
readonly
Returns the value of attribute hardware_bin_descriptions.
-
#information ⇒ Object
readonly
Returns the value of attribute information.
-
#test_flow ⇒ Object
readonly
Returns the value of attribute test_flow.
-
#test_suites ⇒ Object
readonly
Returns the value of attribute test_suites.
-
#testmethodlimits ⇒ Object
readonly
Returns the value of attribute testmethodlimits.
-
#testmethodparameters ⇒ Object
readonly
Returns the value of attribute testmethodparameters.
-
#testmethods ⇒ Object
readonly
Returns the value of attribute testmethods.
Instance Method Summary collapse
- #add_sub_flow(flow) ⇒ Object
-
#initialize(file = nil) ⇒ Flow
constructor
A new instance of Flow.
Constructor Details
#initialize(file = nil) ⇒ Flow
Returns a new instance of Flow.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 11 def initialize(file = nil) @information = {} @declarations = {} @flags = {} @testmethodparameters = {} @testmethodlimits = {} @testmethods = {} @test_suites = {} @test_flow = [] @binning = [] @hardware_bin_descriptions = {} @groups = {} @file = file parse_file if file end |
Instance Attribute Details
#binning ⇒ Object (readonly)
Returns the value of attribute binning.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def binning @binning end |
#declarations ⇒ Object (readonly)
Returns the value of attribute declarations.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def declarations @declarations end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def file @file end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def flags @flags end |
#hardware_bin_descriptions ⇒ Object (readonly)
Returns the value of attribute hardware_bin_descriptions.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def hardware_bin_descriptions @hardware_bin_descriptions end |
#information ⇒ Object (readonly)
Returns the value of attribute information.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def information @information end |
#test_flow ⇒ Object (readonly)
Returns the value of attribute test_flow.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def test_flow @test_flow end |
#test_suites ⇒ Object (readonly)
Returns the value of attribute test_suites.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def test_suites @test_suites end |
#testmethodlimits ⇒ Object (readonly)
Returns the value of attribute testmethodlimits.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def testmethodlimits @testmethodlimits end |
#testmethodparameters ⇒ Object (readonly)
Returns the value of attribute testmethodparameters.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def testmethodparameters @testmethodparameters end |
#testmethods ⇒ Object (readonly)
Returns the value of attribute testmethods.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 7 def testmethods @testmethods end |
Instance Method Details
#add_sub_flow(flow) ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/flow.rb', line 27 def add_sub_flow(flow) combine(flow, :information, exclude: 'test_revision') combine(flow, :declarations) combine(flow, :flags) add_test_methods(flow) add_test_suites(flow) add_flow(flow) (binning << flow.binning).flatten!.uniq! combine(flow, :hardware_bin_descriptions) end |