Sha256: adb23f887c97a6be1acbebf2434de67046792703ba7f11aaf65c490d49a402d7

Contents?: true

Size: 394 Bytes

Versions: 7

Compression:

Stored size: 394 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 = {})
      if TestIds.configured?
        TestIds.current_configuration.allocator.allocate(instance, options)
      end
      _orig_test(instance, options)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
test_ids-0.5.1 lib/test_ids/origen_testers/flow.rb
test_ids-0.5.0 lib/test_ids/origen_testers/flow.rb
test_ids-0.4.1 lib/test_ids/origen_testers/flow.rb
test_ids-0.4.0 lib/test_ids/origen_testers/flow.rb
test_ids-0.3.2 lib/test_ids/origen_testers/flow.rb
test_ids-0.3.1 lib/test_ids/origen_testers/flow.rb
test_ids-0.3.0 lib/test_ids/origen_testers/flow.rb