[Groonga-commit] droonga/fluent-plugin-droonga at c53cd3f [master] Add test for multiple queries

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 28 20:21:05 JST 2013


YUKI Hiroshi	2013-11-28 20:21:05 +0900 (Thu, 28 Nov 2013)

  New Revision: c53cd3f044babf53302406905e6dd8dde8c9374d
  https://github.com/droonga/fluent-plugin-droonga/commit/c53cd3f044babf53302406905e6dd8dde8c9374d

  Message:
    Add test for multiple queries

  Added files:
    test/command/suite/search/multiple-queries.expected
    test/command/suite/search/multiple-queries.test

  Added: test/command/suite/search/multiple-queries.expected (+39 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/multiple-queries.expected    2013-11-28 20:21:05 +0900 (784417a)
@@ -0,0 +1,39 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "keys": {
+        "count": 9,
+        "records": [
+          [
+            "1.1"
+          ],
+          [
+            "1.2"
+          ],
+          [
+            "1.3"
+          ]
+        ]
+      },
+      "titles": {
+        "count": 9,
+        "records": [
+          [
+            "Groonga storage engine"
+          ],
+          [
+            "Groonga server"
+          ],
+          [
+            "Groonga library"
+          ]
+        ]
+      }
+    }
+  }
+]

  Added: test/command/suite/search/multiple-queries.test (+39 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/multiple-queries.test    2013-11-28 20:21:05 +0900 (c0b7140)
@@ -0,0 +1,39 @@
+#@include fixture/documents.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "keys": {
+        "source": "Sections",
+        "sortBy": ["_key"],
+        "output": {
+          "elements": [
+            "startTime",
+            "elapsedTime",
+            "count",
+            "attributes",
+            "records"
+          ],
+          "limit": 3,
+          "attributes": ["_key"]
+        }
+      },
+      "titles": {
+        "source": "Sections",
+        "sortBy": ["-_key"],
+        "output": {
+          "elements": [
+            "startTime",
+            "elapsedTime",
+            "count",
+            "attributes",
+            "records"
+          ],
+          "limit": 3,
+          "attributes": ["title"]
+        }
+      }
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



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