Class: OrigenTesters::SmartestBasedTester::V93K::Builder::Flow

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#binningObject (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

#declarationsObject (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

#fileObject (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

#flagsObject (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_descriptionsObject (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

#informationObject (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_flowObject (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_suitesObject (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

#testmethodlimitsObject (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

#testmethodparametersObject (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

#testmethodsObject (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