Class: TestIdsDev::Interface

Inherits:
Object
  • Object
show all
Includes:
OrigenTesters::ProgramGenerators
Defined in:
lib/test_ids_dev/interface.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Interface

Returns a new instance of Interface.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/test_ids_dev/interface.rb', line 5

def initialize(options = {})
  case dut.test_ids
  when 1
    TestIds.configure id: :cfg1 do |config|
      # Example of testing remote repo
      # config.repo = 'ssh://[email protected]/~r49409/test_ids_repo.git'
      config.bins.include << 3
      config.bins.include << (10..20)
      config.bins.exclude << 15
      config.softbins = :bbbxx
      config.numbers needs: :softbin do |options|
        options[:softbin] * 100
      end
    end

  when 2
    TestIds.configure id: :cfg2 do |config|
      config.bins.include << (5..16)
      config.softbins = :bbxxx
    end
  end
end

Instance Method Details

#func(name, options = {}) ⇒ Object



28
29
30
# File 'lib/test_ids_dev/interface.rb', line 28

def func(name, options = {})
  flow.test(name, options)
end