(err error)
| 120 | } |
| 121 | |
| 122 | func graphQLErrorText(err error) string { |
| 123 | if ge, ok := errors.AsType[*gqlerror.Error](err); ok { |
| 124 | if len(ge.Locations) > 0 { |
| 125 | return formatGraphQLError(ge.Message, ge.Locations[0].Line, ge.Locations[0].Column) |
| 126 | } |
| 127 | return ge.Message |
| 128 | } |
| 129 | return err.Error() |
| 130 | } |
| 131 | |
| 132 | // checkGraphQLResponse compares a response body with the query gh sent. Paths |
| 133 | // in problems use the same dotted form as ghmock set --at. |
no test coverage detected