Sha256: 4899134ef15eff67c363c67c7dcc257ec99165151a44db5febec76ce6dfee065

Contents?: true

Size: 428 Bytes

Versions: 5

Compression:

Stored size: 428 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? && options[:test_ids] != :notrack
        TestIds.current_configuration.allocator.allocate(instance, options)
      end
      _orig_test(instance, options)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
test_ids-0.8.0 lib/test_ids/origen_testers/flow.rb
test_ids-0.7.1 lib/test_ids/origen_testers/flow.rb
test_ids-0.7.0 lib/test_ids/origen_testers/flow.rb
test_ids-0.6.1 lib/test_ids/origen_testers/flow.rb
test_ids-0.6.0 lib/test_ids/origen_testers/flow.rb