[Groonga-commit] droonga/fluent-plugin-droonga at cdd559c [master] Add test for sort with a column not appear in attributes

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 28 19:59:42 JST 2013


YUKI Hiroshi	2013-11-28 19:59:42 +0900 (Thu, 28 Nov 2013)

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

  Message:
    Add test for sort with a column not appear in attributes

  Added files:
    test/command/suite/search/sort-with-invisible-column.expected
    test/command/suite/search/sort-with-invisible-column.test

  Added: test/command/suite/search/sort-with-invisible-column.expected (+28 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/sort-with-invisible-column.expected    2013-11-28 19:59:42 +0900 (80e33f9)
@@ -0,0 +1,28 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "result": {
+        "count": 9,
+        "records": [
+          [
+            "Groonga library"
+          ],
+          [
+            "Geo-location (latitude and longitude) search"
+          ],
+          [
+            "Sharable storage and read lock-free"
+          ],
+          [
+            "Inverted index and tokenizer"
+          ]
+        ]
+      }
+    }
+  }
+]

  Added: test/command/suite/search/sort-with-invisible-column.test (+28 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/sort-with-invisible-column.test    2013-11-28 19:59:42 +0900 (f208abe)
@@ -0,0 +1,28 @@
+#@include fixture/documents.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "result": {
+        "source": "Sections",
+        "sortBy": {
+          "keys": ["-_key"],
+          "offset": 2,
+          "limit": 4
+        },
+        "output": {
+          "elements": [
+            "startTime",
+            "elapsedTime",
+            "count",
+            "attributes",
+            "records"
+          ],
+          "limit": -1,
+          "attributes": ["title"]
+        }
+      }
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



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