Sha256: 213e45f47e2bdaaa6f3f8104e991c3d815b055ad8ccd295cad912ece08183cb3
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/agent/event_buffer_test_cases' require 'new_relic/agent/sized_buffer' module NewRelic::Agent class SizedBufferTest < Minitest::Test include EventBufferTestCases def buffer_class SizedBuffer end def test_append_returns_whether_item_was_stored buffer = buffer_class.new(5) 5.times do |i| result = buffer.append(i) assert(result) end result = buffer.append('foo') refute(result) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-4.1.0.333 | test/new_relic/agent/sized_buffer_test.rb |
newrelic_rpm-4.0.0.332 | test/new_relic/agent/sized_buffer_test.rb |