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

Function TestQueryVarEmptyRootOrderError

query/query0_test.go:1465–1481  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1463}
1464
1465func TestQueryVarEmptyRootOrderError(t *testing.T) {
1466 // This bug was fixed in commit b256f9c6e6c68ae163eee3242518f77a6ab35fa0
1467 dgraphtest.ShouldSkipTest(t, "b256f9c6e6c68ae163eee3242518f77a6ab35fa0", dc.GetVersion())
1468
1469 query := `
1470 {
1471 q(func: eq(name, "DNEinDB")) {
1472 friend(orderdesc: id) {
1473 name
1474 }
1475 }
1476 }
1477 `
1478 _, err := processQuery(context.Background(), t, query)
1479 require.Error(t, err)
1480 require.Contains(t, err.Error(), "Cannot sort by unknown attribute id")
1481}
1482
1483func TestQueryVarEmptyRootOrderChildQueryError(t *testing.T) {
1484 // This bug was fixed in commit b256f9c6e6c68ae163eee3242518f77a6ab35fa0

Callers

nothing calls this directly

Calls 4

ShouldSkipTestFunction · 0.92
processQueryFunction · 0.70
GetVersionMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected