YUKI Hiroshi
null+****@clear*****
Fri Jan 31 16:29:06 JST 2014
YUKI Hiroshi 2014-01-31 16:29:06 +0900 (Fri, 31 Jan 2014) New Revision: ca2d3987327286a527c85811e2bd969b81b7b321 https://github.com/droonga/fluent-plugin-droonga/commit/ca2d3987327286a527c85811e2bd969b81b7b321 Message: Add missing test for reducer Modified files: test/unit/plugin/distributor/test_search_planner.rb Modified: test/unit/plugin/distributor/test_search_planner.rb (+13 -0) =================================================================== --- test/unit/plugin/distributor/test_search_planner.rb 2014-01-31 16:28:33 +0900 (1f05d38) +++ test/unit/plugin/distributor/test_search_planner.rb 2014-01-31 16:29:06 +0900 (84593ed) @@ -459,6 +459,19 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase broadcast_message["body"]) end + def test_reduce_body + assert_equal({ + "users_reduced" => { + "records" => { + "type" => "sort", + "operators" => [], + "limit" => 10, + }, + }, + }, + reduce_message["body"]["users"]) + end + def test_gather_records assert_equal({ "elements" => { -------------- next part -------------- HTML����������������������������...Download