[Groonga-commit] droonga/droonga-engine at 1e79d38 [master] test dump: add a test for patricia trie

Back to archive index

Kouhei Sutou null+****@clear*****
Mon May 19 15:09:09 JST 2014


Kouhei Sutou	2014-05-19 15:09:09 +0900 (Mon, 19 May 2014)

  New Revision: 1e79d38b1a7f8afef0daae5e876f2dec62f41be5
  https://github.com/droonga/droonga-engine/commit/1e79d38b1a7f8afef0daae5e876f2dec62f41be5

  Message:
    test dump: add a test for patricia trie

  Added files:
    test/command/suite/dump/table/patricia_trie.catalog.json
    test/command/suite/dump/table/patricia_trie.expected
    test/command/suite/dump/table/patricia_trie.test

  Added: test/command/suite/dump/table/patricia_trie.catalog.json (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/table/patricia_trie.catalog.json    2014-05-19 15:09:09 +0900 (a5dc28e)
@@ -0,0 +1,14 @@
+{
+  "datasets": {
+    "Droonga": {
+      "schema": {
+        "Memos": {
+          "type": "PatriciaTrie",
+          "keyType": "ShortText",
+          "columns": {}
+        }
+      },
+      "fact": "Memos"
+    }
+  }
+}

  Added: test/command/suite/dump/table/patricia_trie.expected (+66 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/table/patricia_trie.expected    2014-05-19 15:09:09 +0900 (33a2974)
@@ -0,0 +1,66 @@
+{
+  "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": "PatriciaTrie",
+    "name": "Memos",
+    "keyType": "ShortText"
+  },
+  "type": "dump.table"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Droonga",
+  "type": "dump.end"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Droonga",
+  "body": {
+    "type": "PatriciaTrie",
+    "name": "Memos",
+    "keyType": "ShortText"
+  },
+  "type": "dump.table"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Droonga",
+  "type": "dump.end"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Droonga",
+  "body": {
+    "type": "PatriciaTrie",
+    "name": "Memos",
+    "keyType": "ShortText"
+  },
+  "type": "dump.table"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Droonga",
+  "type": "dump.end"
+}

  Added: test/command/suite/dump/table/patricia_trie.test (+5 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/table/patricia_trie.test    2014-05-19 15:09:09 +0900 (6f787ba)
@@ -0,0 +1,5 @@
+#@require-catalog-version 2
+{
+  "type": "dump",
+  "dataset": "Droonga"
+}
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index