Sha256: 1555500f3abd42d4f8dea89a3319357aeb5ad8f12656300f9c6d12de35b764c5

Contents?: true

Size: 392 Bytes

Versions: 113

Compression:

Stored size: 392 Bytes

Contents

require_relative 'helper'
require 'fluent/msgpack_factory'

class MessagePackFactoryTest < Test::Unit::TestCase
  test 'call log.warn only once' do
    klass = Class.new do
      include Fluent::MessagePackFactory::Mixin
    end

    mp = klass.new

    mock.proxy($log).warn(anything).once

    assert mp.msgpack_factory
    assert mp.msgpack_factory
    assert mp.msgpack_factory
  end
end

Version data entries

113 entries across 113 versions & 3 rubygems

Version Path
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/fluentd-1.16.1/test/test_msgpack_factory.rb
fluentd-1.16.1-x64-mingw-ucrt test/test_msgpack_factory.rb
fluentd-1.16.1-x64-mingw32 test/test_msgpack_factory.rb
fluentd-1.16.1-x86-mingw32 test/test_msgpack_factory.rb
fluentd-1.16.1 test/test_msgpack_factory.rb
fluentd-1.16.0-x64-mingw32 test/test_msgpack_factory.rb
fluentd-1.16.0-x64-mingw-ucrt test/test_msgpack_factory.rb
fluentd-1.16.0 test/test_msgpack_factory.rb
fluentd-1.15.3-x86-mingw32 test/test_msgpack_factory.rb
fluentd-1.15.3-x64-mingw-ucrt test/test_msgpack_factory.rb
fluentd-1.15.3-x64-mingw32 test/test_msgpack_factory.rb
fluentd-1.15.3 test/test_msgpack_factory.rb
fluentd-1.15.2-x86-mingw32 test/test_msgpack_factory.rb
fluentd-1.15.2-x64-mingw32 test/test_msgpack_factory.rb
fluentd-1.15.2-x64-mingw-ucrt test/test_msgpack_factory.rb
fluentd-1.15.2 test/test_msgpack_factory.rb
fluentd-1.15.1-x86-mingw32 test/test_msgpack_factory.rb
fluentd-1.15.1-x64-mingw32 test/test_msgpack_factory.rb
fluentd-1.15.1-x64-mingw-ucrt test/test_msgpack_factory.rb
fluentd-1.15.1 test/test_msgpack_factory.rb