Sha256: 3c678979d30e1b57925820a96d88acc1d26cbb9cea150a12d72523904947949a

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 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

6 entries across 6 versions & 1 rubygems

Version Path
statsd-instrument-3.0.0 test/null_sink_test.rb
statsd-instrument-3.0.0.pre2 test/null_sink_test.rb
statsd-instrument-2.9.2 test/null_sink_test.rb
statsd-instrument-3.0.0.pre1 test/null_sink_test.rb
statsd-instrument-2.9.1 test/null_sink_test.rb
statsd-instrument-2.9.0 test/null_sink_test.rb