Documentation ¶
Overview ¶
Package calculator is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calculator ¶
type Calculator struct {
// contains filtered or unexported fields
}
Calculator 是计算器结构体
type MockMath ¶
type MockMath struct {
// contains filtered or unexported fields
}
MockMath is a mock of Math interface
func NewMockMath ¶
func NewMockMath(ctrl *gomock.Controller) *MockMath
NewMockMath creates a new mock instance
func (*MockMath) EXPECT ¶
func (m *MockMath) EXPECT() *MockMathMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockMathMockRecorder ¶
type MockMathMockRecorder struct {
// contains filtered or unexported fields
}
MockMathMockRecorder is the mock recorder for MockMath
func (*MockMathMockRecorder) Add ¶
func (mr *MockMathMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockMathMockRecorder) Sub ¶
func (mr *MockMathMockRecorder) Sub(arg0, arg1 interface{}) *gomock.Call
Sub indicates an expected call of Sub
Click to show internal directories.
Click to hide internal directories.