NewRequest returns an *http.Request associated with this instance.
(method, urlStr string, body io.Reader)
| 64 | |
| 65 | // NewRequest returns an *http.Request associated with this instance. |
| 66 | func (i *instance) NewRequest(method, urlStr string, body io.Reader) (*http.Request, error) { |
| 67 | req, err := http.NewRequest(method, urlStr, body) |
| 68 | if err != nil { |
| 69 | return nil, err |
| 70 | } |
| 71 | |
| 72 | // Associate this request. |
| 73 | return internal.RegisterTestRequest(req, i.apiURL, "dev~"+i.appID), nil |
| 74 | } |
| 75 | |
| 76 | // Close kills the child api_server.py process, releasing its resources. |
| 77 | func (i *instance) Close() (err error) { |
nothing calls this directly
no test coverage detected