MCPcopy
hub / github.com/dgraph-io/dgraph / TestCountUIDWithMultipleCount

Function TestCountUIDWithMultipleCount

query/query4_test.go:1356–1365  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1354}
1355
1356func 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
1367func TestCountUIDWithMultipleCountAndAlias(t *testing.T) {
1368 query := `{

Callers

nothing calls this directly

Calls 2

processQueryFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected