fix the vendor files

This commit is contained in:
toranger
2019-02-18 14:52:18 +08:00
parent 830b5c54a5
commit a5b3ad37d6
78 changed files with 20437 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
package http
import (
"github.com/stretchr/testify/mock"
"net/http"
)
// TestRoundTripper DEPRECATED USE net/http/httptest
type TestRoundTripper struct {
mock.Mock
}
// RoundTrip DEPRECATED USE net/http/httptest
func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
args := t.Called(req)
return args.Get(0).(*http.Response), args.Error(1)
}