[Groonga-commit] droonga/droonga-engine at 3d858a9 [master] test: Add drntest cases for the column_list command

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 24 12:23:42 JST 2014


YUKI Hiroshi	2014-04-24 12:23:42 +0900 (Thu, 24 Apr 2014)

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

  Message:
    test: Add drntest cases for the column_list command

  Added files:
    test/command/suite/groonga/column_list/success.expected
    test/command/suite/groonga/column_list/success.test
    test/command/suite/groonga/column_list/unknown-table.expected
    test/command/suite/groonga/column_list/unknown-table.test

  Added: test/command/suite/groonga/column_list/success.expected (+39 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/column_list/success.expected    2014-04-24 12:23:42 +0900 (2cfa7e3)
@@ -0,0 +1,39 @@
+{
+  "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
+    ],
+    true
+  ]
+}

  Added: test/command/suite/groonga/column_list/success.test (+24 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/column_list/success.test    2014-04-24 12:23:42 +0900 (6ff3ba1)
@@ -0,0 +1,24 @@
+{
+  "type": "table_create",
+  "dataset": "Droonga",
+  "body": {
+    "name"  : "User",
+    "flags" : "TABLE_PAT_KEY"
+  }
+}
+{
+  "type": "column_create",
+  "dataset": "Droonga",
+  "body": {
+    "table" : "User",
+    "name"  : "age",
+    "type"  : "Int32"
+  }
+}
+{
+  "type": "column_list",
+  "dataset": "Droonga",
+  "body": {
+    "table" : "User"
+  }
+}

  Added: test/command/suite/groonga/column_list/unknown-table.expected (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/column_list/unknown-table.expected    2014-04-24 12:23:42 +0900 (ea5ee1b)
@@ -0,0 +1,14 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "column_list.result",
+  "body": [
+    [
+      -22,
+      0.0,
+      0.0,
+      "table doesn't exist: <Unknown>"
+    ],
+    false
+  ]
+}

  Added: test/command/suite/groonga/column_list/unknown-table.test (+7 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/column_list/unknown-table.test    2014-04-24 12:23:42 +0900 (eec5726)
@@ -0,0 +1,7 @@
+{
+  "type": "column_list",
+  "dataset": "Droonga",
+  "body": {
+    "table" : "Unknown"
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



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