(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestEnumValuePositionWithBlockStringDescription(t *testing.T) { |
| 84 | schema, parseErr := ParseSchema(&ast.Source{ |
| 85 | Input: `enum MyEnum { |
| 86 | """ |
| 87 | multi |
| 88 | line |
| 89 | """ |
| 90 | MY_VALUE |
| 91 | }`, |
| 92 | }) |
| 93 | assert.NoError(t, parseErr) |
| 94 | val := schema.Definitions.ForName("MyEnum").EnumValues.ForName("MY_VALUE") |
| 95 | assert.Equal(t, 6, val.Position.Line) |
| 96 | assert.Greater(t, val.Position.Column, 0) |
| 97 | } |
| 98 | |
| 99 | func TestTypePosition(t *testing.T) { |
| 100 | t.Run("type line number with no bang", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…