MCPcopy Create free account
hub / github.com/vektah/gqlparser / TestInputValuePositionWithBlockStringDescription

Function TestInputValuePositionWithBlockStringDescription

parser/schema_test.go:67–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func TestInputValuePositionWithBlockStringDescription(t *testing.T) {
68 schema, parseErr := ParseSchema(&ast.Source{
69 Input: `input MyInput {
70 """
71 multi
72 line
73 """
74 myField: String
75 }`,
76 })
77 assert.NoError(t, parseErr)
78 field := schema.Definitions.ForName("MyInput").Fields.ForName("myField")
79 assert.Equal(t, 6, field.Position.Line)
80 assert.Greater(t, field.Position.Column, 0)
81}
82
83func TestEnumValuePositionWithBlockStringDescription(t *testing.T) {
84 schema, parseErr := ParseSchema(&ast.Source{

Callers

nothing calls this directly

Calls 2

ParseSchemaFunction · 0.85
ForNameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…