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

Function TestParse7_Error

schema/parse_test.go:270–275  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

268}
269
270func TestParse7_Error(t *testing.T) {
271 reset()
272 result, err := Parse("name:string @index .")
273 require.Error(t, err)
274 require.Nil(t, result)
275}
276
277func TestParse8_Error(t *testing.T) {
278 reset()

Callers

nothing calls this directly

Calls 3

resetFunction · 0.85
ParseFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected