Skip to content

Commit 6cacc6e

Browse files
ninetteadhikarihulkoba
authored andcommitted
refactor(index-selection-test): Port index selection test to Elixir
1 parent fcb1fe2 commit 6cacc6e

3 files changed

Lines changed: 481 additions & 0 deletions

File tree

test/elixir/test/config/search.elixir

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,19 @@
3838
],
3939
"LimitTests": [
4040
"limit field"
41+
],
42+
"TextIndexSelectionTest": [
43+
"with text",
44+
"no view index",
45+
"with or",
46+
"manual bad text idx"
47+
],
48+
"MultiTextIndexSelectionTest": [
49+
"fallback to json with multi text",
50+
"multi text index is error",
51+
"use index works"
52+
],
53+
"RegexVsTextIndexTest": [
54+
"regex works with text index"
4155
]
4256
}

test/elixir/test/config/suite.elixir

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,5 +763,32 @@
763763
],
764764
"IgnoreDesignDocsForAllDocsIndexTests": [
765765
"should not return design docs"
766+
],
767+
"JSONIndexSelectionTest": [
768+
"basic",
769+
"with and",
770+
"with nested and",
771+
"with or",
772+
"use most columns",
773+
"no valid sort index",
774+
"invalid use index",
775+
"uses index when no range or equals",
776+
"reject use index invalid fields",
777+
"reject use index ddoc and name invalid fields",
778+
"reject use index sort order",
779+
"use index fallback if valid sort",
780+
"prefer use index over optimal index",
781+
"manual bad view idx01",
782+
"explain sort reverse",
783+
"use index with invalid name",
784+
"use index without fallback succeeds for valid index",
785+
"use index without fallback fails for invalid index with fallback available",
786+
"use index without fallback succeeds for empty index",
787+
"use index without fallback fails for empty index",
788+
"use index without fallback fails for invalid index no fallback exists",
789+
"index without fallback",
790+
"no index without fallback",
791+
"uses all docs when fields do not match selector",
792+
"uses all docs when selector doesnt require fields to exist"
766793
]
767794
}

0 commit comments

Comments
 (0)