[Groonga-commit] droonga/fluent-plugin-droonga at 692140c [master] Add test for "groupBy" without records

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 4 19:45:05 JST 2013


YUKI Hiroshi	2013-12-04 19:45:05 +0900 (Wed, 04 Dec 2013)

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

  Message:
    Add test for "groupBy" without records

  Added files:
    test/command/suite/search/group-only-count.expected
    test/command/suite/search/group-only-count.test

  Added: test/command/suite/search/group-only-count.expected (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/group-only-count.expected    2013-12-04 19:45:05 +0900 (72b46c1)
@@ -0,0 +1,14 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "documents": {
+        "count": 1
+      }
+    }
+  }
+]

  Added: test/command/suite/search/group-only-count.test (+18 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/group-only-count.test    2013-12-04 19:45:05 +0900 (710453c)
@@ -0,0 +1,18 @@
+#@include fixture/documents.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "documents": {
+        "source": "Sections",
+        "groupBy": "document",
+        "output": {
+          "elements": [
+            "count"
+          ]
+        }
+      }
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
Descargar 



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