Skip to content

Commit 8325674

Browse files
test: add positive case then MaxNodeToSplitIndex is greater than amount of nodes in query
1 parent 9a52b06 commit 8325674

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

finder/split_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ func Test_splitQuery(t *testing.T) {
178178
expectedErr: nil,
179179
desc: "not split query",
180180
},
181+
{
182+
givenQuery: "*.query.{a,b}",
183+
givenMaxNodeToSplitIndex: 20,
184+
expectedQueries: []string{
185+
"*.query.a",
186+
"*.query.b",
187+
},
188+
expectedErr: nil,
189+
desc: "query split if MaxNodeToSplitIndex is greater than nodes amount in query",
190+
},
181191
}
182192

183193
for i, singleCase := range cases {

0 commit comments

Comments
 (0)