Documentation ¶
Overview ¶
Author:ydy Date: Desc:
Package testx is a generated GoMock package.
Author:ydy Date: Desc:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSliceWithPreAlloc ¶
func MakeSliceWithPreAlloc() []int
MakeSliceWithPreAlloc 通过预分配Slice的存储空间构造
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) Get ¶
func (mr *MockDBMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
Click to show internal directories.
Click to hide internal directories.