[Groonga-commit] droonga/fluent-plugin-droonga at 4bef57d [master] Don't output needless "count" for tests about reducer

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 28 16:15:33 JST 2013


YUKI Hiroshi	2013-11-28 16:15:33 +0900 (Thu, 28 Nov 2013)

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

  Message:
    Don't output needless "count" for tests about reducer

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

  Modified: test/unit/plugin/distributor/test_search.rb (+8 -32)
===================================================================
--- test/unit/plugin/distributor/test_search.rb    2013-11-28 16:07:36 +0900 (199c61e)
+++ test/unit/plugin/distributor/test_search.rb    2013-11-28 16:15:33 +0900 (fc736f0)
@@ -321,7 +321,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               "source" => "User",
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 0,
                 "limit" => 1,
@@ -335,9 +335,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [],
@@ -364,7 +361,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               "source" => "User",
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 1,
                 "limit" => 1,
@@ -378,9 +375,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [],
@@ -408,7 +402,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               "sortBy" => ["name"],
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 0,
                 "limit" => 1,
@@ -422,9 +416,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [
@@ -456,7 +447,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               },
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 0,
                 "limit" => 1,
@@ -470,9 +461,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [
@@ -508,7 +496,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               },
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 4,
                 "limit" => 8,
@@ -522,9 +510,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [
@@ -560,7 +545,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               },
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 4,
                 "limit" => -1,
@@ -574,9 +559,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [
@@ -612,7 +594,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               },
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 4,
                 "limit" => 8,
@@ -626,9 +608,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [
@@ -664,7 +643,7 @@ class SearchDistributorTest < Test::Unit::TestCase
               },
               "output" => {
                 "format" => "complex",
-                "elements" => ["count", "records"],
+                "elements" => ["records"],
                 "attributes" => ["_key", "name", "age"],
                 "offset" => 4,
                 "limit" => -1,
@@ -678,9 +657,6 @@ class SearchDistributorTest < Test::Unit::TestCase
 
       message = []
       message << reducer(envelope, {
-        "count" => {
-          "type" => "sum",
-        },
         "records" => {
           "type" => "sort",
           "operators" => [
-------------- next part --------------
HTML����������������������������...
Download 



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