Sha256: f9836818daa826d14bb9c32c1e87eb29e243ca94df2216626cf18388ff2832a8

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

require 'origen_testers/flow'
module OrigenTesters
  module Flow
    # Override the flow.test method to inject our generated bin and
    # test numbers
    alias_method :_orig_test, :test
    def test(instance, options = {})
      unless TestIds.config.empty?
        TestIds.allocator.allocate(instance, options)
      end
      _orig_test(instance, options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test_ids-0.2.1 lib/test_ids/origen_testers/flow.rb
test_ids-0.2.0 lib/test_ids/origen_testers/flow.rb