| 1 |
// Code generated by MockGen. DO NOT EDIT. |
| 2 |
// Source: github.com/golang/mock/sample/concurrent (interfaces: Math) |
| 3 |
|
| 4 |
// Package mock_concurrent is a generated GoMock package. |
| 5 |
package mock_concurrent |
| 6 |
|
| 7 |
import ( |
| 8 |
reflect "reflect" |
| 9 |
|
| 10 |
gomock "github.com/golang/mock/gomock" |
| 11 |
) |
| 12 |
|
| 13 |
// MockMath is a mock of Math interface. |
| 14 |
type MockMath struct { |
| 15 |
ctrl *gomock.Controller |
| 16 |
recorder *MockMathMockRecorder |
| 17 |
} |
| 18 |
|
| 19 |
// MockMathMockRecorder is the mock recorder for MockMath. |
| 20 |
type MockMathMockRecorder struct { |
| 21 |
mock *MockMath |
| 22 |
} |
| 23 |
|
| 24 |
// NewMockMath creates a new mock instance. |
| 25 |
func NewMockMath(ctrl *gomock.Controller) *MockMath { |
| 26 |
mock := &MockMath{ctrl: ctrl} |
| 27 |
mock.recorder = &MockMathMockRecorder{mock} |
| 28 |
return mock |
| 29 |
} |
| 30 |
|
| 31 |
// EXPECT returns an object that allows the caller to indicate expected use. |
| 32 |
func (m *MockMath) EXPECT() *MockMathMockRecorder { |
| 33 |
return m.recorder |
| 34 |
} |
| 35 |
|
| 36 |
// Sum mocks base method. |
| 37 |
func (m *MockMath) Sum(arg0, arg1 int) int { |
| 38 |
m.ctrl.T.Helper() |
| 39 |
ret := m.ctrl.Call(m, "Sum", arg0, arg1) |
| 40 |
ret0, _ := ret[0].(int) |
| 41 |
return ret0 |
| 42 |
} |
| 43 |
|
| 44 |
// Sum indicates an expected call of Sum. |
| 45 |
func (mr *MockMathMockRecorder) Sum(arg0, arg1 interface{}) *gomock.Call { |
| 46 |
mr.mock.ctrl.T.Helper() |
| 47 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sum", reflect.TypeOf((*MockMath)(nil).Sum), arg0, arg1) |
| 48 |
} |