github.com/Iqoqo/consul@v1.4.5/agent/cache-types/mock_RPC.go (about)

     1  // Code generated by mockery v1.0.0
     2  package cachetype
     3  
     4  import mock "github.com/stretchr/testify/mock"
     5  
     6  // MockRPC is an autogenerated mock type for the RPC type
     7  type MockRPC struct {
     8  	mock.Mock
     9  }
    10  
    11  // RPC provides a mock function with given fields: method, args, reply
    12  func (_m *MockRPC) RPC(method string, args interface{}, reply interface{}) error {
    13  	ret := _m.Called(method, args, reply)
    14  
    15  	var r0 error
    16  	if rf, ok := ret.Get(0).(func(string, interface{}, interface{}) error); ok {
    17  		r0 = rf(method, args, reply)
    18  	} else {
    19  		r0 = ret.Error(0)
    20  	}
    21  
    22  	return r0
    23  }