(opChain *chain, method string)
| 195 | } |
| 196 | |
| 197 | func (r *Request) initReq(opChain *chain, method string) { |
| 198 | httpReq, err := r.config.RequestFactory.NewRequest(method, r.config.BaseURL, nil) |
| 199 | |
| 200 | if err != nil { |
| 201 | opChain.fail(AssertionFailure{ |
| 202 | Type: AssertOperation, |
| 203 | Errors: []error{ |
| 204 | errors.New("failed to create http request"), |
| 205 | err, |
| 206 | }, |
| 207 | }) |
| 208 | } |
| 209 | |
| 210 | r.httpReq = httpReq |
| 211 | } |
| 212 | |
| 213 | // Alias is similar to Value.Alias. |
| 214 | func (r *Request) Alias(name string) *Request { |
no test coverage detected