checkRequest checks a request gh made and the response ghmock gave. resp is nil when no response was stored. Off-schema responses aren't checked, but gh's query still is.
(e loggedRequest, resp *response)
| 149 | // nil when no response was stored. Off-schema responses aren't checked, but |
| 150 | // gh's query still is. |
| 151 | func (c *checker) checkRequest(e loggedRequest, resp *response) checkResult { |
| 152 | return c.check(e, resp, true) |
| 153 | } |
| 154 | |
| 155 | // Response-only saves reconstruct query text, not the original variable payload. |
| 156 | func (c *checker) checkResponse(e loggedRequest, resp *response) checkResult { |