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

Function TestAbruptMutation

dql/state_test.go:117–137  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

115}
116
117func TestAbruptMutation(t *testing.T) {
118 input := `
119 mutation {
120 set {
121 What is <this> .
122 Why is this #!!?
123 How is this?
124 }`
125 l := lex.Lexer{
126 Input: input,
127 }
128 l.Run(lexTopLevel)
129 var typ lex.ItemType
130 it := l.NewIterator()
131 for it.Next() {
132 item := it.Item()
133 t.Log(item.String())
134 typ = item.Typ
135 }
136 require.Equal(t, lex.ItemError, typ)
137}
138
139func TestVariables1(t *testing.T) {
140 input := `

Callers

nothing calls this directly

Calls 6

RunMethod · 0.95
NewIteratorMethod · 0.95
ItemMethod · 0.80
LogMethod · 0.80
NextMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected