[Groonga-commit] droonga/droonga-engine at 4428972 [master] Add drntest case for column_list with _key virtual column

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 7 15:18:37 JST 2014


YUKI Hiroshi	2014-11-07 15:18:37 +0900 (Fri, 07 Nov 2014)

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

  Message:
    Add drntest case for column_list with _key virtual column

  Added files:
    test/command/suite/groonga/column_list/with-key.expected
    test/command/suite/groonga/column_list/with-key.test

  Added: test/command/suite/groonga/column_list/with-key.expected (+96 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/column_list/with-key.expected    2014-11-07 15:18:37 +0900 (6a3fe0b)
@@ -0,0 +1,96 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "table_create.result",
+  "body": [
+    [
+      0,
+      0.0,
+      0.0
+    ],
+    true
+  ]
+}
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "column_create.result",
+  "body": [
+    [
+      0,
+      0.0,
+      0.0
+    ],
+    true
+  ]
+}
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "column_list.result",
+  "body": [
+    [
+      0,
+      0.0,
+      0.0
+    ],
+    [
+      [
+        [
+          "id",
+          "UInt32"
+        ],
+        [
+          "name",
+          "ShortText"
+        ],
+        [
+          "path",
+          "ShortText"
+        ],
+        [
+          "type",
+          "ShortText"
+        ],
+        [
+          "flags",
+          "ShortText"
+        ],
+        [
+          "domain",
+          "ShortText"
+        ],
+        [
+          "range",
+          "ShortText"
+        ],
+        [
+          "source",
+          "ShortText"
+        ]
+      ],
+      [
+        257,
+        "_key",
+        "",
+        "",
+        "COLUMN_SCALAR",
+        "User",
+        "ShortText",
+        []
+      ],
+      [
+        258,
+        "age",
+        "/path/to/column",
+        "fix",
+        "COLUMN_SCALAR",
+        "User",
+        "Int32",
+        [
+
+        ]
+      ]
+    ]
+  ]
+}

  Added: test/command/suite/groonga/column_list/with-key.test (+25 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/column_list/with-key.test    2014-11-07 15:18:37 +0900 (74cdd14)
@@ -0,0 +1,25 @@
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name"     : "User",
+    "flags"    : "TABLE_PAT_KEY",
+    "key_type" : "ShortText"
+  }
+}
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table" : "User",
+    "name"  : "age",
+    "type"  : "Int32"
+  }
+}
+{
+  "type": "column_list",
+  "dataset": "Default",
+  "body": {
+    "table" : "User"
+  }
+}
-------------- next part --------------
HTML����������������������������...
Télécharger 



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