[Groonga-commit] droonga/fluent-plugin-droonga at 96505c6 [master] Add testcase for default offset and limit of sortBy option

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Mon Dec 9 11:08:40 JST 2013


YUKI Hiroshi	2013-12-09 11:08:40 +0900 (Mon, 09 Dec 2013)

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

  Message:
    Add testcase for default offset and limit of sortBy option

  Added files:
    test/command/suite/search/sort/default-offset-limit.expected
    test/command/suite/search/sort/default-offset-limit.test

  Added: test/command/suite/search/sort/default-offset-limit.expected (+43 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/sort/default-offset-limit.expected    2013-12-09 11:08:40 +0900 (400dc3f)
@@ -0,0 +1,43 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "result": {
+        "count": 9,
+        "records": [
+          [
+            "1.9"
+          ],
+          [
+            "1.8"
+          ],
+          [
+            "1.7"
+          ],
+          [
+            "1.6"
+          ],
+          [
+            "1.5"
+          ],
+          [
+            "1.4"
+          ],
+          [
+            "1.3"
+          ],
+          [
+            "1.2"
+          ],
+          [
+            "1.1"
+          ]
+        ]
+      }
+    }
+  }
+]

  Added: test/command/suite/search/sort/default-offset-limit.test (+26 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/sort/default-offset-limit.test    2013-12-09 11:08:40 +0900 (1c18cdf)
@@ -0,0 +1,26 @@
+#@include fixture/documents.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "result": {
+        "source": "Sections",
+        "sortBy": {
+          "keys": ["-_key"]
+        },
+        "output": {
+          "elements": [
+            "startTime",
+            "elapsedTime",
+            "count",
+            "attributes",
+            "records"
+          ],
+          "limit": -1,
+          "attributes": ["_key"]
+        }
+      }
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る