(ctx context.Context, results sgbucket.QueryResultIterator)
| 341 | } |
| 342 | |
| 343 | func countQueryResults(ctx context.Context, results sgbucket.QueryResultIterator) int { |
| 344 | |
| 345 | count := 0 |
| 346 | var row map[string]interface{} |
| 347 | for results.Next(ctx, &row) { |
| 348 | count++ |
| 349 | } |
| 350 | return count |
| 351 | } |
| 352 | |
| 353 | func TestQueryChannelsActiveOnlyWithLimit(t *testing.T) { |
| 354 | if base.TestsDisableGSI() { |
no test coverage detected