Class: C99::DocInterface
- Includes:
- OrigenTesters::Doc::Generator
- Defined in:
- lib/c99/doc_interface.rb
Instance Method Summary collapse
- #block_loop(name, options) ⇒ Object
- #func(name, options = {}) ⇒ Object
-
#initialize(_options = {}) ⇒ DocInterface
constructor
Options passed to Flow.create and Library.create will be passed in here, use as desired to configure your interface.
- #log(_msg) ⇒ Object
- #para(name, options = {}) ⇒ Object
- #por(_options = {}) ⇒ Object
- #resources_filename=(*_args) ⇒ Object
Constructor Details
#initialize(_options = {}) ⇒ DocInterface
Options passed to Flow.create and Library.create will be passed in here, use as desired to configure your interface
7 8 |
# File 'lib/c99/doc_interface.rb', line 7 def initialize( = {}) end |
Instance Method Details
#block_loop(name, options) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/c99/doc_interface.rb', line 31 def block_loop(name, ) if [:by_block] tests.group do |group| group.name = name $nvm.blocks.each_with_index do |block, i| yield block, i, group end end else yield end end |
#func(name, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/c99/doc_interface.rb', line 16 def func(name, = {}) = { duration: :static }.merge() block_loop(name, ) do |_block, i, group| ins = tests.add(name, ) if group flow.test(group, ) if i == 0 else flow.test(ins, ) end end end |
#log(_msg) ⇒ Object
13 14 |
# File 'lib/c99/doc_interface.rb', line 13 def log(_msg) end |
#para(name, options = {}) ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lib/c99/doc_interface.rb', line 47 def para(name, = {}) = { high_voltage: false }.merge() ins = tests.add(name, ) ins.dc_category = 'NVM_PARA' flow.test(ins, ) end |
#por(_options = {}) ⇒ Object
44 45 |
# File 'lib/c99/doc_interface.rb', line 44 def por( = {}) end |
#resources_filename=(*_args) ⇒ Object
10 11 |
# File 'lib/c99/doc_interface.rb', line 10 def resources_filename=(*_args) end |