Sha256: 91e112f38db19074c8c9022b01d5a1397016c07b8a36e8a989b1268a98bedc2b

Contents?: true

Size: 1.33 KB

Versions: 28

Compression:

Stored size: 1.33 KB

Contents

# Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'rubygems'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts 'Run `bundle install` to install missing gems'
  exit e.status_code
end

require 'test/unit'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'fluent/test'

unless ENV.key?('VERBOSE')
  nulllogger = Object.new
  nulllogger.instance_eval do |_|
    def respond_to_missing?
      true
    end

    def method_missing(_method, *_args) # rubocop:disable Style/MethodMissing
    end
  end
  # global $log variable is used by fluentd
  $log = nulllogger # rubocop:disable Style/GlobalVars
end

require 'fluent/plugin/out_detect_exceptions'

Version data entries

28 entries across 28 versions & 6 rubygems

Version Path
gitlab-fluent-plugin-detect-exceptions-0.0.17 test/helper.rb
gitlab-fluent-plugin-detect-exceptions-0.0.16 test/helper.rb
gitlab-fluent-plugin-detect-exceptions-0.0.15 test/helper.rb
fluent-plugin-detect-exceptions-0.0.14 test/helper.rb
fluent-plugin-detect-exceptions-0.0.13 test/helper.rb
fluent-plugin-detect-exceptions-0.0.12 test/helper.rb
fluent-plugin-detect-exceptions-xiniaoyun-0.0.2 test/helper.rb
fluent-plugin-detect-exceptions-xiniaoyun-0.0.11 test/helper.rb
fluent-plugin-detect-exceptions-xiniaoyun-0.0.1 test/helper.rb
fluent-plugin-detect-exceptions-0.0.11 test/helper.rb
fluent-plugin-detect-exceptions-0.0.10 test/helper.rb
fluent-plugin-detect-exceptions-0.0.9 test/helper.rb
fluent-plugin-detect-exceptions-0.0.8 test/helper.rb
fluent-plugin-detect-ft-memb-exceptions-0.0.3 test/helper.rb
fluent-plugin-detect-exceptions-0.0.7 test/helper.rb
fluent-plugin-detect-exceptions-0.0.6 test/helper.rb
fluent-plugin-detect-memb-exceptions-0.0.2 test/helper.rb
fluent-plugin-detect-memb-exceptions-0.0.1 test/helper.rb
fluent-plugin-detect-exceptions-with-error-0.0.2a test/helper.rb
fluent-plugin-detect-exceptions-with-error-0.0.2 test/helper.rb