MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / TestMatchROQuery

Function TestMatchROQuery

client_test.go:71–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestMatchROQuery(t *testing.T) {
72 q := "MATCH (s)-[e]->(d) RETURN s,e,d"
73 res, err := graph.ROQuery(q)
74 if err != nil {
75 t.Error(err)
76 }
77
78 checkQueryResults(t, res)
79}
80
81func checkQueryResults(t *testing.T, res *QueryResult) {
82 assert.Equal(t, len(res.results), 1, "expecting 1 result record")

Callers

nothing calls this directly

Calls 2

checkQueryResultsFunction · 0.85
ROQueryMethod · 0.80

Tested by

no test coverage detected