mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-24 08:53:48 +01:00
10 lines
192 B
Go
10 lines
192 B
Go
|
package test
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
type MockRoundTripper func(r *http.Request) *http.Response
|
||
|
|
||
|
func (f MockRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
|
||
|
return f(r), nil
|
||
|
}
|