(t *testing.T)
| 1354 | } |
| 1355 | |
| 1356 | func TestCountUIDWithMultipleCount(t *testing.T) { |
| 1357 | query := `{ |
| 1358 | q(func: uid(1, 2, 3)) { |
| 1359 | count(uid) |
| 1360 | count(uid) |
| 1361 | } |
| 1362 | }` |
| 1363 | _, err := processQuery(context.Background(), t, query) |
| 1364 | require.Contains(t, err.Error(), "uidcount not allowed multiple times in same sub-query") |
| 1365 | } |
| 1366 | |
| 1367 | func TestCountUIDWithMultipleCountAndAlias(t *testing.T) { |
| 1368 | query := `{ |
nothing calls this directly
no test coverage detected