YUKI Hiroshi
null+****@clear*****
Wed Dec 11 10:51:38 JST 2013
YUKI Hiroshi 2013-12-11 10:51:38 +0900 (Wed, 11 Dec 2013) New Revision: 011d2e42094a3457047d44acf80bb8e8bbcedff6 https://github.com/droonga/fluent-plugin-droonga/commit/011d2e42094a3457047d44acf80bb8e8bbcedff6 Message: Add test for too large offset Modified files: test/unit/plugin/collector/test_basic.rb Modified: test/unit/plugin/collector/test_basic.rb (+26 -0) =================================================================== --- test/unit/plugin/collector/test_basic.rb 2013-12-09 18:54:22 +0900 (4cb52e6) +++ test/unit/plugin/collector/test_basic.rb 2013-12-11 10:51:38 +0900 (0794b02) @@ -120,6 +120,32 @@ class BasicCollectorTest < Test::Unit::TestCase }, }, }, + :too_large_offset => { + :expected => { + "count" => 2, + "records" => [ + ], + }, + :source => { + "count" => 2, + "records" => [ + create_record(1, 1.1, 1.2), + create_record(2, 2.1, 2.2), + ], + }, + :mapping => { + "output" => "search_result", + "elements" => { + "records" => { + "type" => "sort", + "format" => "simple", + "attributes" => [], + "offset" => 10000, + "limit" => -1, + }, + }, + }, + }, :attributes => { :expected => { "count" => 2, -------------- next part -------------- HTML����������������������������...Download