16 lines
227 B
Go
16 lines
227 B
Go
package mocks
|
|
|
|
/*
|
|
|
|
import (
|
|
"net/http/httptest"
|
|
)
|
|
|
|
func newMockClient(doer func(*http.Request) (*http.Response, error)) *http.Client {
|
|
return &http.Client{
|
|
Transport: transportEnsureBody(transportFunc(doer)),
|
|
}
|
|
}
|
|
|
|
*/
|