(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func 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 | |
| 83 | func TestEnumValuePositionWithBlockStringDescription(t *testing.T) { |
| 84 | schema, parseErr := ParseSchema(&ast.Source{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…