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

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jan 31 17:52:35 JST 2014


YUKI Hiroshi	2014-01-31 17:52:35 +0900 (Fri, 31 Jan 2014)

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

  Message:
    Remove duplicated tests

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

  Modified: test/unit/plugin/distributor/test_search_planner.rb (+0 -99)
===================================================================
--- test/unit/plugin/distributor/test_search_planner.rb    2014-01-31 17:51:29 +0900 (db3dadd)
+++ test/unit/plugin/distributor/test_search_planner.rb    2014-01-31 17:52:35 +0900 (913fab4)
@@ -1307,105 +1307,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase
 
 =begin
   class SingleQueryTest < self
-    def test_have_sortBy_with_multiple_sort_keys
-      request = {
-        "type" => "search",
-        "dataset" => "Droonga",
-        "body" => {
-          "queries" => {
-            "have_records" => {
-              "source" => "User",
-              "sortBy" => {
-                "keys" => ["-age", "name"],
-                "limit" => -1,
-              },
-              "output" => {
-                "format" => "complex",
-                "elements" => ["records"],
-                "attributes" => ["_key", "name", "age"],
-                "limit" => -1,
-              },
-            },
-          },
-        },
-      }
-
-      expected_plan = []
-      expected_plan << reducer(request, {
-        "records" => {
-          "type" => "sort",
-          "operators" => [
-            { "column" => 2, "operator" => ">" },
-            { "column" => 1, "operator" => "<" },
-          ],
-          "limit" => -1,
-        },
-      })
-      expected_plan << gatherer(request, :elements => {
-                                           "records" => records_mapper(
-                                             :offset => 0,
-                                             :limit => -1,
-                                             :format => "complex",
-                                             :attributes => ["_key", "name", "age"],
-                                           ),
-                                         })
-      expected_plan << searcher(request, :sort_offset => 0,
-                                         :sort_limit => -1,
-                                         :output_offset => 0,
-                                         :output_limit => -1)
-      assert_equal(expected_plan, plan(request))
-    end
-
-    def test_have_sortBy_with_missing_sort_attributes
-      request = {
-        "type" => "search",
-        "dataset" => "Droonga",
-        "body" => {
-          "queries" => {
-            "have_records" => {
-              "source" => "User",
-              "sortBy" => {
-                "keys" => ["-public_age", "public_name"],
-                "limit" => -1,
-              },
-              "output" => {
-                "format" => "complex",
-                "elements" => ["records"],
-                "attributes" => ["_key", "name", "age"],
-                "limit" => -1,
-              },
-            },
-          },
-        },
-      }
-
-      expected_plan = []
-      expected_plan << reducer(request, {
-        "records" => {
-          "type" => "sort",
-          "operators" => [
-            { "column" => 3, "operator" => ">" },
-            { "column" => 4, "operator" => "<" },
-          ],
-          "limit" => -1,
-        },
-      })
-      expected_plan << gatherer(request, :elements => {
-                                           "records" => records_mapper(
-                                             :offset => 0,
-                                             :limit => -1,
-                                             :format => "complex",
-                                             :attributes => ["_key", "name", "age"],
-                                           ),
-                                         })
-      expected_plan << searcher(request, :sort_offset => 0,
-                                         :sort_limit => -1,
-                                         :output_offset => 0,
-                                         :output_limit => -1,
-                                         :extra_attributes => ["public_age", "public_name"])
-      assert_equal(expected_plan, plan(request))
-    end
-
     def test_hash_attributes
       request = {
         "type" => "search",
-------------- next part --------------
HTML����������������������������...
Download 



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