Sha256: 8ea5154b85954bd0c8f7085548e6d8cf7dc142ce9e2119833fcad54330485e30

Contents?: true

Size: 925 Bytes

Versions: 3

Compression:

Stored size: 925 Bytes

Contents

#
# Fluentd
#
#    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.
#

module Fluent
  module Test
    class FilterTestDriver < TestDriver
      def initialize(klass, &block)
        super(klass, &block)
      end

      def filter(tag, time, record)
        @instance.filter(tag, time, record)
      end

      def filter_stream(tag, es)
        @instance.filter_stream(tag, es)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluentd-0.12.1 lib/fluent/test/filter_test.rb
fluentd-0.12.0 lib/fluent/test/filter_test.rb
fluentd-0.12.0.pre.3 lib/fluent/test/filter_test.rb