118 行
3.6 KiB
Go
118 行
3.6 KiB
Go
![]() |
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: transport.go
|
||
|
|
||
|
// Package pub is a generated GoMock package.
|
||
|
package pub
|
||
|
|
||
|
import (
|
||
|
context "context"
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
http "net/http"
|
||
|
url "net/url"
|
||
|
reflect "reflect"
|
||
|
)
|
||
|
|
||
|
// MockTransport is a mock of Transport interface
|
||
|
type MockTransport struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockTransportMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockTransportMockRecorder is the mock recorder for MockTransport
|
||
|
type MockTransportMockRecorder struct {
|
||
|
mock *MockTransport
|
||
|
}
|
||
|
|
||
|
// NewMockTransport creates a new mock instance
|
||
|
func NewMockTransport(ctrl *gomock.Controller) *MockTransport {
|
||
|
mock := &MockTransport{ctrl: ctrl}
|
||
|
mock.recorder = &MockTransportMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
|
func (m *MockTransport) EXPECT() *MockTransportMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Dereference mocks base method
|
||
|
func (m *MockTransport) Dereference(c context.Context, iri *url.URL) ([]byte, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Dereference", c, iri)
|
||
|
ret0, _ := ret[0].([]byte)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Dereference indicates an expected call of Dereference
|
||
|
func (mr *MockTransportMockRecorder) Dereference(c, iri interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dereference", reflect.TypeOf((*MockTransport)(nil).Dereference), c, iri)
|
||
|
}
|
||
|
|
||
|
// Deliver mocks base method
|
||
|
func (m *MockTransport) Deliver(c context.Context, b []byte, to *url.URL) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Deliver", c, b, to)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Deliver indicates an expected call of Deliver
|
||
|
func (mr *MockTransportMockRecorder) Deliver(c, b, to interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deliver", reflect.TypeOf((*MockTransport)(nil).Deliver), c, b, to)
|
||
|
}
|
||
|
|
||
|
// BatchDeliver mocks base method
|
||
|
func (m *MockTransport) BatchDeliver(c context.Context, b []byte, recipients []*url.URL) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "BatchDeliver", c, b, recipients)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// BatchDeliver indicates an expected call of BatchDeliver
|
||
|
func (mr *MockTransportMockRecorder) BatchDeliver(c, b, recipients interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeliver", reflect.TypeOf((*MockTransport)(nil).BatchDeliver), c, b, recipients)
|
||
|
}
|
||
|
|
||
|
// MockHttpClient is a mock of HttpClient interface
|
||
|
type MockHttpClient struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockHttpClientMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockHttpClientMockRecorder is the mock recorder for MockHttpClient
|
||
|
type MockHttpClientMockRecorder struct {
|
||
|
mock *MockHttpClient
|
||
|
}
|
||
|
|
||
|
// NewMockHttpClient creates a new mock instance
|
||
|
func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient {
|
||
|
mock := &MockHttpClient{ctrl: ctrl}
|
||
|
mock.recorder = &MockHttpClientMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
|
func (m *MockHttpClient) EXPECT() *MockHttpClientMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Do mocks base method
|
||
|
func (m *MockHttpClient) Do(req *http.Request) (*http.Response, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Do", req)
|
||
|
ret0, _ := ret[0].(*http.Response)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Do indicates an expected call of Do
|
||
|
func (mr *MockHttpClientMockRecorder) Do(req interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHttpClient)(nil).Do), req)
|
||
|
}
|