Sha256: 69351d577705b0b7bef0a410fe414ca800cd8de4af5f8e0fda256a043d9bc948

Contents?: true

Size: 607 Bytes

Versions: 10

Compression:

Stored size: 607 Bytes

Contents

module FakeGVLTools
  def self.reset
    self::GlobalTimer.enabled = false
    self::GlobalTimer.monotonic_time = 0
    self::WaitingThreads.enabled = false
    self::WaitingThreads.count = 0
  end

  module GlobalTimer
    @enabled = false
    @monotonic_time = 0

    class << self
      attr_writer :enabled
      attr_accessor :monotonic_time

      def enabled?
        @enabled
      end
    end
  end

  module WaitingThreads
    @enabled = false
    @count = 0

    class << self
      attr_writer :enabled
      attr_accessor :count

      def enabled?
        @enabled
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appsignal-3.3.11-java spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.11 spec/support/mocks/fake_gvl_tools.rb
appsignal-3.4.0-java spec/support/mocks/fake_gvl_tools.rb
appsignal-3.4.0 spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.10-java spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.10 spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.9-java spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.9 spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.8-java spec/support/mocks/fake_gvl_tools.rb
appsignal-3.3.8 spec/support/mocks/fake_gvl_tools.rb