Files
mc/pkg/client/mocks/HTTPTracer.go
T
Harshavardhana 8bc587b8cf Now clients only take URLs - fixes #425
- Interface change, takes only minimal arguments
 - Passing URLs all the way down
 - Bucket and Object awareness only at per client level
2015-04-19 19:39:02 -07:00

31 lines
432 B
Go

package mocks
import (
"net/http"
"github.com/stretchr/testify/mock"
)
// httpTracer is a mock object
type httpTracer struct {
mock.Mock
}
// Request is a mock method
func (m *httpTracer) Request(req *http.Request) error {
ret := m.Called(req)
r0 := ret.Error(0)
return r0
}
// Response is a mock method
func (m *httpTracer) Response(res *http.Response) error {
ret := m.Called(res)
r0 := ret.Error(0)
return r0
}