Kouhei Sutou
null+****@clear*****
Mon May 19 14:56:14 JST 2014
Kouhei Sutou 2014-05-19 14:56:14 +0900 (Mon, 19 May 2014) New Revision: 8eec599802e73bd63172446dd5f1adbf723a0206 https://github.com/droonga/droonga-engine/commit/8eec599802e73bd63172446dd5f1adbf723a0206 Message: test dump: add a test for scalar column Added files: test/command/suite/dump/column/scalar.catalog.json test/command/suite/dump/column/scalar.expected test/command/suite/dump/column/scalar.test Added: test/command/suite/dump/column/scalar.catalog.json (+19 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/dump/column/scalar.catalog.json 2014-05-19 14:56:14 +0900 (4d18f1c) @@ -0,0 +1,19 @@ +{ + "datasets": { + "Droonga": { + "schema": { + "Memos": { + "type": "Hash", + "keyType": "ShortText", + "columns": { + "title": { + "type": "Scalar", + "valueType": "ShortText" + } + } + } + }, + "fact": "Memos" + } + } +} Added: test/command/suite/dump/column/scalar.expected (+99 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/dump/column/scalar.expected 2014-05-19 14:56:14 +0900 (849e1dd) @@ -0,0 +1,99 @@ +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "type": "dump.start" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "type": "dump.start" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "type": "dump.start" +} +{ + "inReplyTo": "request-id", + "statusCode": 200, + "type": "dump.result", + "body": true +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "body": { + "type": "Hash", + "name": "Memos", + "keyType": "ShortText" + }, + "type": "dump.table" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "body": { + "table": "Memos", + "name": "title", + "type": "Scalar", + "valueType": "ShortText" + }, + "type": "dump.column" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "type": "dump.end" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "body": { + "type": "Hash", + "name": "Memos", + "keyType": "ShortText" + }, + "type": "dump.table" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "body": { + "table": "Memos", + "name": "title", + "type": "Scalar", + "valueType": "ShortText" + }, + "type": "dump.column" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "type": "dump.end" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "body": { + "type": "Hash", + "name": "Memos", + "keyType": "ShortText" + }, + "type": "dump.table" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "body": { + "table": "Memos", + "name": "title", + "type": "Scalar", + "valueType": "ShortText" + }, + "type": "dump.column" +} +{ + "inReplyTo": "request-id", + "dataset": "Droonga", + "type": "dump.end" +} Added: test/command/suite/dump/column/scalar.test (+5 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/dump/column/scalar.test 2014-05-19 14:56:14 +0900 (6f787ba) @@ -0,0 +1,5 @@ +#@require-catalog-version 2 +{ + "type": "dump", + "dataset": "Droonga" +} -------------- next part -------------- HTML����������������������������...下載