(response *http.Response, v interface{})
| 72 | } |
| 73 | |
| 74 | func UnmarshalToInterface(response *http.Response, v interface{}) error { |
| 75 | body, err := io.ReadAll(response.Body) |
| 76 | if err != nil { |
| 77 | return err |
| 78 | } |
| 79 | |
| 80 | return json.Unmarshal(body, v) |
| 81 | } |
| 82 | |
| 83 | func Login(target configuration.Target, username, password string) (string, error) { |
| 84 | credentials := HoverflyAuthSchema{ |
no outgoing calls
no test coverage detected