YUKI Hiroshi
null+****@clear*****
Fri Nov 21 16:54:00 JST 2014
YUKI Hiroshi 2014-11-21 16:54:00 +0900 (Fri, 21 Nov 2014) New Revision: 5c5ba194d2954c94741f5621c409df1ef5e5df01 https://github.com/droonga/droonga-engine/commit/5c5ba194d2954c94741f5621c409df1ef5e5df01 Message: Add command test for system/n_total_records Added files: test/command/fixture/users.jsons test/command/suite/system/n_total_records.expected test/command/suite/system/n_total_records.test Added: test/command/fixture/users.jsons (+25 -0) 100644 =================================================================== --- /dev/null +++ test/command/fixture/users.jsons 2014-11-21 16:54:00 +0900 (2b394f6) @@ -0,0 +1,25 @@ +#@include fixture/user-table.jsons +#@disable-logging +{ + "dataset": "Default", + "type": "add", + "body": { + "table": "User", + "key": "Alice", + "values": { + "name": "Alice" + } + } +} +{ + "dataset": "Default", + "type": "add", + "body": { + "table": "User", + "key": "Bob", + "values": { + "name": "Bob" + } + } +} +#@enable-logging Added: test/command/suite/system/n_total_records.expected (+6 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/system/n_total_records.expected 2014-11-21 16:54:00 +0900 (70c85b3) @@ -0,0 +1,6 @@ +{ + "inReplyTo": "request-id", + "statusCode": 200, + "type": "system.n_total_records.result", + "body": 12 +} Added: test/command/suite/system/n_total_records.test (+7 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/system/n_total_records.test 2014-11-21 16:54:00 +0900 (bde61a1) @@ -0,0 +1,7 @@ +#@include fixture/users.jsons +#@include fixture/documents.jsons +{ + "type": "system.n_total_records", + "dataset": "Default", + "body": {} +} -------------- next part -------------- HTML����������������������������...Download