[Groonga-commit] droonga/fluent-plugin-droonga at 54d214c [master] Remove duplicated tests

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jan 31 16:32:41 JST 2014


YUKI Hiroshi	2014-01-31 16:32:41 +0900 (Fri, 31 Jan 2014)

  New Revision: 54d214ce172dd6b185ca64327359e38270d0f408
  https://github.com/droonga/fluent-plugin-droonga/commit/54d214ce172dd6b185ca64327359e38270d0f408

  Message:
    Remove duplicated tests

  Modified files:
    test/unit/plugin/distributor/test_search_planner.rb

  Modified: test/unit/plugin/distributor/test_search_planner.rb (+0 -111)
===================================================================
--- test/unit/plugin/distributor/test_search_planner.rb    2014-01-31 16:32:26 +0900 (d882251)
+++ test/unit/plugin/distributor/test_search_planner.rb    2014-01-31 16:32:41 +0900 (0c26a5c)
@@ -568,117 +568,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase
 
 
   class SingleQueryTest < self
-    def test_no_output_limit
-      request = {
-        "type" => "search",
-        "dataset" => "Droonga",
-        "body" => {
-          "queries" => {
-            "no_limit" => {
-              "source" => "User",
-              "output" => {
-                "format" => "complex",
-                "elements" => ["count", "records"],
-              },
-            },
-          },
-        },
-      }
-
-      expected_plan = []
-      expected_plan << reducer(request, {
-        "count" => {
-          "type" => "sum",
-        },
-      })
-      expected_plan << gatherer(request)
-      expected_plan << searcher(request, :output_offset => 0,
-                                         :output_limit => 0)
-      assert_equal(expected_plan, plan(request))
-    end
-
-    def test_have_records
-      request = {
-        "type" => "search",
-        "dataset" => "Droonga",
-        "body" => {
-          "queries" => {
-            "have_records" => {
-              "source" => "User",
-              "output" => {
-                "format" => "complex",
-                "elements" => ["records"],
-                "attributes" => ["_key", "name", "age"],
-                "offset" => 0,
-                "limit" => 1,
-              },
-            },
-          },
-        },
-      }
-
-      expected_plan = []
-      expected_plan << reducer(request, {
-        "records" => {
-          "type" => "sort",
-          "operators" => [],
-          "limit" => 1,
-        },
-      })
-      expected_plan << gatherer(request, :elements => {
-                                           "records" => records_mapper(
-                                             :offset => 0,
-                                             :limit => 1,
-                                             :format => "complex",
-                                             :attributes => ["_key", "name", "age"],
-                                           ),
-                                         })
-      expected_plan << searcher(request, :output_offset => 0,
-                                         :output_limit => 1)
-      assert_equal(expected_plan, plan(request))
-    end
-
-    def test_have_output_offset
-      request = {
-        "type" => "search",
-        "dataset" => "Droonga",
-        "body" => {
-          "queries" => {
-            "have_records" => {
-              "source" => "User",
-              "output" => {
-                "format" => "complex",
-                "elements" => ["records"],
-                "attributes" => ["_key", "name", "age"],
-                "offset" => 1,
-                "limit" => 1,
-              },
-            },
-          },
-        },
-      }
-
-      expected_plan = []
-      expected_plan << reducer(request, {
-        "records" => {
-          "type" => "sort",
-          "operators" => [],
-          "limit" => 2,
-        },
-      })
-      expected_plan << gatherer(request, :elements => {
-                                           "records" => records_mapper(
-                                             :offset => 1,
-                                             :limit => 1,
-                                             :format => "complex",
-                                             :attributes => ["_key", "name", "age"],
-                                           ),
-                                         })
-      expected_plan << searcher(request, :output_offset => 0,
-                                         :output_limit => 2)
-      assert_equal(expected_plan, plan(request))
-    end
-
     def test_have_simple_sortBy
       request = {
         "type" => "search",
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index