YUKI Hiroshi
null+****@clear*****
Wed Dec 11 10:54:45 JST 2013
YUKI Hiroshi 2013-12-11 10:54:45 +0900 (Wed, 11 Dec 2013) New Revision: 9b74feb5a82261714f21268557afdc4c37fbabec https://github.com/droonga/fluent-plugin-droonga/commit/9b74feb5a82261714f21268557afdc4c37fbabec Message: Add tests for too large offset Added files: test/command/suite/search/range/too-large-output-offset.expected test/command/suite/search/range/too-large-output-offset.test test/command/suite/search/range/too-large-sort-offset.expected test/command/suite/search/range/too-large-sort-offset.test Added: test/command/suite/search/range/too-large-output-offset.expected (+16 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/range/too-large-output-offset.expected 2013-12-11 10:54:45 +0900 (c759329) @@ -0,0 +1,16 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 200, + "type": "search.result", + "body": { + "result": { + "count": 9, + "records": [ + ] + } + } + } +] Added: test/command/suite/search/range/too-large-output-offset.test (+25 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/range/too-large-output-offset.test 2013-12-11 10:54:45 +0900 (4a9d2fa) @@ -0,0 +1,25 @@ +#@include fixture/documents.jsons +{ + "type": "search", + "dataset": "Droonga", + "body": { + "queries": { + "result": { + "source": "Sections", + "sortBy": ["_key"], + "output": { + "elements": [ + "startTime", + "elapsedTime", + "count", + "attributes", + "records" + ], + "offset": 10000, + "limit": 4, + "attributes": ["_key"] + } + } + } + } +} Added: test/command/suite/search/range/too-large-sort-offset.expected (+16 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/range/too-large-sort-offset.expected 2013-12-11 10:54:45 +0900 (b641693) @@ -0,0 +1,16 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 200, + "type": "search.result", + "body": { + "result": { + "count": 0, + "records": [ + ] + } + } + } +] Added: test/command/suite/search/range/too-large-sort-offset.test (+28 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/range/too-large-sort-offset.test 2013-12-11 10:54:45 +0900 (f397f0e) @@ -0,0 +1,28 @@ +#@include fixture/documents.jsons +{ + "type": "search", + "dataset": "Droonga", + "body": { + "queries": { + "result": { + "source": "Sections", + "sortBy": { + "keys": ["-_key"], + "offset": 10000, + "limit": 4 + }, + "output": { + "elements": [ + "startTime", + "elapsedTime", + "count", + "attributes", + "records" + ], + "limit": -1, + "attributes": ["_key"] + } + } + } + } +} -------------- next part -------------- HTML����������������������������...Download