Sha256: 974b1f06e068d4037468dfc5d5e65b6cdfb1b2520c64bd75eaa5a815285b7070

Contents?: true

Size: 1.16 KB

Versions: 52

Compression:

Stored size: 1.16 KB

Contents

module C99
  class DocInterface
    include OrigenTesters::Doc::Generator

    # Options passed to Flow.create and Library.create will be passed in here, use as
    # desired to configure your interface
    def initialize(_options = {})
    end

    def resources_filename=(*_args)
    end

    def log(_msg)
    end

    def func(name, options = {})
      options = {
        duration: :static
      }.merge(options)

      block_loop(name, options) do |_block, i, group|
        ins = tests.add(name, options)
        if group
          flow.test(group, options) if i == 0
        else
          flow.test(ins, options)
        end
      end
    end

    def block_loop(name, options)
      if options[: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

    def por(_options = {})
    end

    def para(name, options = {})
      options = {
        high_voltage: false
      }.merge(options)
      ins = tests.add(name, options)
      ins.dc_category = 'NVM_PARA'
      flow.test(ins, options)
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
origen-0.7.21 lib/c99/doc_interface.rb
origen-0.7.20 lib/c99/doc_interface.rb
origen-0.7.19 lib/c99/doc_interface.rb
origen-0.7.18 lib/c99/doc_interface.rb
origen-0.7.17 lib/c99/doc_interface.rb
origen-0.7.16 lib/c99/doc_interface.rb
origen-0.7.15 lib/c99/doc_interface.rb
origen-0.7.14 lib/c99/doc_interface.rb
origen-0.7.13 lib/c99/doc_interface.rb
origen-0.7.12 lib/c99/doc_interface.rb
origen-0.7.11 lib/c99/doc_interface.rb
origen-0.7.10 lib/c99/doc_interface.rb
origen-0.7.9 lib/c99/doc_interface.rb
origen-0.7.8 lib/c99/doc_interface.rb
origen-0.7.7 lib/c99/doc_interface.rb
origen-0.7.6 lib/c99/doc_interface.rb
origen-0.7.5 lib/c99/doc_interface.rb
origen-0.7.4 lib/c99/doc_interface.rb
origen-0.7.3 lib/c99/doc_interface.rb
origen-0.7.2 lib/c99/doc_interface.rb