Sha256: ed9fa04ec7dfc3e200a2724cc18ba91109ae8113ee54e340072196e9af9f011c

Contents?: true

Size: 517 Bytes

Versions: 34

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class NullSinkTest < Minitest::Test
  def test_null_sink
    null_sink = StatsD::Instrument::NullSink.new
    null_sink << "foo:1|c" << "bar:1|c"
    pass # We don't have anything to assert, except that no exception was raised
  end

  def test_null_sink_sample
    null_sink = StatsD::Instrument::NullSink.new
    assert(null_sink.sample?(0), "The null sink should always sample")
    assert(null_sink.sample?(1), "The null sink should always sample")
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
statsd-instrument-3.9.9 test/null_sink_test.rb
statsd-instrument-3.9.8 test/null_sink_test.rb
statsd-instrument-3.9.7 test/null_sink_test.rb
statsd-instrument-3.9.6 test/null_sink_test.rb
statsd-instrument-3.9.5 test/null_sink_test.rb
statsd-instrument-3.9.4 test/null_sink_test.rb
statsd-instrument-3.9.3 test/null_sink_test.rb
statsd-instrument-3.9.2 test/null_sink_test.rb
statsd-instrument-3.9.1 test/null_sink_test.rb
statsd-instrument-3.9.0 test/null_sink_test.rb
statsd-instrument-3.8.0 test/null_sink_test.rb
statsd-instrument-3.7.0 test/null_sink_test.rb
statsd-instrument-3.6.1 test/null_sink_test.rb
statsd-instrument-3.6.0 test/null_sink_test.rb
statsd-instrument-3.5.12 test/null_sink_test.rb
statsd-instrument-3.5.11 test/null_sink_test.rb
statsd-instrument-3.5.10 test/null_sink_test.rb
statsd-instrument-3.5.9 test/null_sink_test.rb
statsd-instrument-3.5.8 test/null_sink_test.rb
statsd-instrument-3.5.7 test/null_sink_test.rb