[Groonga-commit] groonga/fluent-plugin-groonga at 669fbb1 [master] test: include Fluent::Test::Helpers at top-level

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Apr 24 13:52:26 JST 2017


Kouhei Sutou	2017-04-24 13:52:26 +0900 (Mon, 24 Apr 2017)

  New Revision: 669fbb1d070b7dd9c4bdf8b445b7085d1cc99a51
  https://github.com/groonga/fluent-plugin-groonga/commit/669fbb1d070b7dd9c4bdf8b445b7085d1cc99a51

  Message:
    test: include Fluent::Test::Helpers at top-level
    
    It's a Fluentd style.

  Modified files:
    test/run-test.rb
    test/test_input.rb
    test/test_output.rb

  Modified: test/run-test.rb (+4 -1)
===================================================================
--- test/run-test.rb    2017-04-24 13:47:59 +0900 (cd8da9e)
+++ test/run-test.rb    2017-04-24 13:52:26 +0900 (eab4f18)
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 #
-# Copyright (C) 2012  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2012-2017  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -31,6 +31,9 @@ Test::Unit::Priority.enable
 $LOAD_PATH.unshift(lib_dir)
 
 require "fluent/test"
+require "fluent/test/helpers"
+
+include Fluent::Test::Helpers
 
 ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"] ||= "5000"
 

  Modified: test/test_input.rb (+2 -8)
===================================================================
--- test/test_input.rb    2017-04-24 13:47:59 +0900 (ed87411)
+++ test/test_input.rb    2017-04-24 13:52:26 +0900 (ed79018)
@@ -1,6 +1,4 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2012-2017  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,15 +19,11 @@ require "net/http"
 require "webrick/config"
 require "webrick/httpresponse"
 
-require "fluent/test"
-require "fluent/test/helpers"
 require "fluent/plugin/in_groonga"
 
 require "http_parser"
 
 class GroongaInputTest < Test::Unit::TestCase
-  include Fluent::Test::Helpers
-
   setup :before => :append
   def setup_fluent
     Fluent::Test.setup
@@ -39,7 +33,7 @@ class GroongaInputTest < Test::Unit::TestCase
 
   private
   def create_driver
-    driver = Fluent::Test::InputTestDriver.new(Fluent::GroongaInput)
+    driver = Fluent::Test::InputTestDriver.new(Fluent::Plugin::GroongaInput)
     driver.configure(configuration)
     driver
   end

  Modified: test/test_output.rb (+1 -7)
===================================================================
--- test/test_output.rb    2017-04-24 13:47:59 +0900 (7280eb4)
+++ test/test_output.rb    2017-04-24 13:52:26 +0900 (1221340)
@@ -1,6 +1,4 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2012-2017  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,16 +19,12 @@ require "net/http"
 require "webrick/config"
 require "webrick/httpresponse"
 
-require "fluent/test"
 require "fluent/test/driver/output"
-require "fluent/test/helpers"
 require "fluent/plugin/out_groonga"
 
 require "http_parser"
 
 class GroongaOutputTest < Test::Unit::TestCase
-  include Fluent::Test::Helpers
-
   setup :before => :append
   def setup_fluent
     Fluent::Test.setup
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index