SetDefault sets the default response for unmatched routes.
(status int, body string)
| 103 | |
| 104 | // SetDefault sets the default response for unmatched routes. |
| 105 | func (m *MockAPI) SetDefault(status int, body string) { |
| 106 | m.defaultStatus = status |
| 107 | m.defaultBody = body |
| 108 | } |
| 109 | |
| 110 | // LastRequest returns the most recent recorded request. |
| 111 | func (m *MockAPI) LastRequest() RecordedRequest { |
no outgoing calls