[Groonga-commit] droonga/droonga-engine at d167bae [master] test dump: add a test for vector column

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon May 19 14:58:32 JST 2014


Kouhei Sutou	2014-05-19 14:58:32 +0900 (Mon, 19 May 2014)

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

  Message:
    test dump: add a test for vector column

  Added files:
    test/command/suite/dump/column/vector.catalog.json
    test/command/suite/dump/column/vector.expected
    test/command/suite/dump/column/vector.test

  Added: test/command/suite/dump/column/vector.catalog.json (+22 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/column/vector.catalog.json    2014-05-19 14:58:32 +0900 (40673d3)
@@ -0,0 +1,22 @@
+{
+  "datasets": {
+    "Droonga": {
+      "schema": {
+        "Memos": {
+          "type": "Hash",
+          "keyType": "ShortText",
+          "columns": {
+            "tags": {
+              "type": "Vector",
+              "valueType": "ShortText",
+              "vectorOptions": {
+                "weight": true
+              }
+            }
+          }
+        }
+      },
+      "fact": "Memos"
+    }
+  }
+}

  Added: test/command/suite/dump/column/vector.expected (+108 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/column/vector.expected    2014-05-19 14:58:32 +0900 (65b33fc)
@@ -0,0 +1,108 @@
+{
+  "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": "tags",
+    "type": "Vector",
+    "valueType": "ShortText",
+    "vectorOptions": {
+      "weight": true
+    }
+  },
+  "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": "tags",
+    "type": "Vector",
+    "valueType": "ShortText",
+    "vectorOptions": {
+      "weight": true
+    }
+  },
+  "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": "tags",
+    "type": "Vector",
+    "valueType": "ShortText",
+    "vectorOptions": {
+      "weight": true
+    }
+  },
+  "type": "dump.column"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Droonga",
+  "type": "dump.end"
+}

  Added: test/command/suite/dump/column/vector.test (+5 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/column/vector.test    2014-05-19 14:58:32 +0900 (6f787ba)
@@ -0,0 +1,5 @@
+#@require-catalog-version 2
+{
+  "type": "dump",
+  "dataset": "Droonga"
+}
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る