Kouhei Sutou
null+****@clear*****
Thu Jan 30 15:06:07 JST 2014
Kouhei Sutou 2014-01-30 15:06:07 +0900 (Thu, 30 Jan 2014) New Revision: abcdc34c3b0b77a5ef111a1548c54098e26d1a2b https://github.com/droonga/fluent-plugin-droonga/commit/abcdc34c3b0b77a5ef111a1548c54098e26d1a2b Message: test: simplify The test focuses the number of outputs not how to distribute limit parameters. Modified files: test/unit/plugin/distributor/test_search_planner.rb Modified: test/unit/plugin/distributor/test_search_planner.rb (+9 -63) =================================================================== --- test/unit/plugin/distributor/test_search_planner.rb 2014-01-30 15:01:24 +0900 (cd639ef) +++ test/unit/plugin/distributor/test_search_planner.rb 2014-01-30 15:06:07 +0900 (d0d1c2a) @@ -55,31 +55,19 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase "query1" => { "source" => "User", "output" => { - "format" => "complex", - "elements" => ["count", "records"], - "attributes" => [], - "offset" => 0, - "limit" => 10, + "elements" => ["count"], }, }, "query2" => { "source" => "User", "output" => { - "format" => "complex", - "elements" => ["count", "records"], - "attributes" => [], - "offset" => 0, - "limit" => 20, + "elements" => ["count"], }, }, "query3" => { "source" => "User", "output" => { - "format" => "complex", - "elements" => ["count", "records"], - "attributes" => [], - "offset" => 0, - "limit" => 30, + "elements" => ["count"], }, }, }, @@ -104,11 +92,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase "count" => { "type" => "sum", }, - "records" => { - "type" => "sort", - "operators" => [], - "limit" => 10, - }, }, }, "query2" => { @@ -116,11 +99,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase "count" => { "type" => "sum", }, - "records" => { - "type" => "sort", - "operators" => [], - "limit" => 20, - }, }, }, "query3" => { @@ -128,11 +106,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase "count" => { "type" => "sum", }, - "records" => { - "type" => "sort", - "operators" => [], - "limit" => 30, - }, }, }, }, @@ -159,37 +132,16 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase "query1_reduced" => { "output" => "query1", "elements" => { - "records" => { - "type" => "sort", - "offset" => 0, - "limit" => 10, - "format" => "complex", - "attributes" => [], - }, }, }, "query2_reduced" => { "output" => "query2", "elements" => { - "records" => { - "type" => "sort", - "offset" => 0, - "limit" => 20, - "format" => "complex", - "attributes" => [], - }, }, }, "query3_reduced" => { "output" => "query3", "elements" => { - "records" => { - "type" => "sort", - "offset" => 0, - "limit" => 30, - "format" => "complex", - "attributes" => [], - }, }, }, }, @@ -213,30 +165,24 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase "source" => "User", "output" => { "format" => "simple", - "elements" => ["count", "records"], - "attributes" => [], - "offset" => 0, - "limit" => 10, + "elements" => ["count"], + "limit" => 0, }, }, "query2" => { "source" => "User", "output" => { "format" => "simple", - "elements" => ["count", "records"], - "attributes" => [], - "offset" => 0, - "limit" => 20, + "elements" => ["count"], + "limit" => 0, }, }, "query3" => { "source" => "User", "output" => { "format" => "simple", - "elements" => ["count", "records"], - "attributes" => [], - "offset" => 0, - "limit" => 30, + "elements" => ["count"], + "limit" => 0, }, }, }, -------------- next part -------------- HTML����������������������������...Download