Sha256: 48587d922d5b1f4cde7ce88a89027af8b9a6ef06ecc3e0ab70a875df8272c962

Contents?: true

Size: 613 Bytes

Versions: 10

Compression:

Stored size: 613 Bytes

Contents

#!/usr/bin/env ruby
require File.expand_path("helper", File.dirname(__FILE__))

# Test catchpoint in C ruby_debug extension.
  
class TestRubyDebugCatchpoint < Test::Unit::TestCase
  def test_catchpoints
    assert_equal({}, Debugger.catchpoints)
    Debugger.start_
    assert_equal({}, Debugger.catchpoints)
    Debugger.add_catchpoint('ZeroDivisionError')
    assert_equal({'ZeroDivisionError' => 0}, Debugger.catchpoints)
    Debugger.add_catchpoint('RuntimeError')
    assert_equal(['RuntimeError', 'ZeroDivisionError'], 
                 Debugger.catchpoints.keys.sort)
  ensure
    Debugger.stop
  end
end

Version data entries

10 entries across 8 versions & 2 rubygems

Version Path
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/test/test_catchpoint.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-0.2.8/test/test_catchpoint.rb
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/test/test_catchpoint.rb
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/test/test_catchpoint.rb
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-0.2.8/test/test_catchpoint.rb
debase-0.2.8 test/test_catchpoint.rb
debase-0.2.7 test/test_catchpoint.rb
debase-0.2.6 test/test_catchpoint.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/test/test_catchpoint.rb
debase-0.2.5.beta2 test/test_catchpoint.rb