github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_web3server/mock_web3server.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./api/web3server.go
     3  
     4  // Package mock_web3server is a generated GoMock package.
     5  package mock_web3server
     6  
     7  import (
     8  	context "context"
     9  	io "io"
    10  	reflect "reflect"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  	apitypes "github.com/iotexproject/iotex-core/api/types"
    14  )
    15  
    16  // MockWeb3Handler is a mock of Web3Handler interface.
    17  type MockWeb3Handler struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockWeb3HandlerMockRecorder
    20  }
    21  
    22  // MockWeb3HandlerMockRecorder is the mock recorder for MockWeb3Handler.
    23  type MockWeb3HandlerMockRecorder struct {
    24  	mock *MockWeb3Handler
    25  }
    26  
    27  // NewMockWeb3Handler creates a new mock instance.
    28  func NewMockWeb3Handler(ctrl *gomock.Controller) *MockWeb3Handler {
    29  	mock := &MockWeb3Handler{ctrl: ctrl}
    30  	mock.recorder = &MockWeb3HandlerMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockWeb3Handler) EXPECT() *MockWeb3HandlerMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // HandlePOSTReq mocks base method.
    40  func (m *MockWeb3Handler) HandlePOSTReq(arg0 context.Context, arg1 io.Reader, arg2 apitypes.Web3ResponseWriter) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "HandlePOSTReq", arg0, arg1, arg2)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // HandlePOSTReq indicates an expected call of HandlePOSTReq.
    48  func (mr *MockWeb3HandlerMockRecorder) HandlePOSTReq(arg0, arg1, arg2 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandlePOSTReq", reflect.TypeOf((*MockWeb3Handler)(nil).HandlePOSTReq), arg0, arg1, arg2)
    51  }