Documentation ¶
Overview ¶
Package mock_msgcat is a generated GoMock package.
Index ¶
- type MockMessageCatalog
- func (m *MockMessageCatalog) EXPECT() *MockMessageCatalogMockRecorder
- func (m *MockMessageCatalog) GetErrorWithCtx(ctx context.Context, msgCode int, msgParams ...interface{}) error
- func (m *MockMessageCatalog) GetMessageWithCtx(ctx context.Context, msgCode int, msgParams ...interface{}) *msgcat.Message
- func (m *MockMessageCatalog) LoadMessages(lang string, messages []msgcat.RawMessage) error
- func (m *MockMessageCatalog) WrapErrorWithCtx(ctx context.Context, err error, msgCode int, msgParams ...interface{}) error
- type MockMessageCatalogMockRecorder
- func (mr *MockMessageCatalogMockRecorder) GetErrorWithCtx(ctx, msgCode interface{}, msgParams ...interface{}) *gomock.Call
- func (mr *MockMessageCatalogMockRecorder) GetMessageWithCtx(ctx, msgCode interface{}, msgParams ...interface{}) *gomock.Call
- func (mr *MockMessageCatalogMockRecorder) LoadMessages(lang, messages interface{}) *gomock.Call
- func (mr *MockMessageCatalogMockRecorder) WrapErrorWithCtx(ctx, err, msgCode interface{}, msgParams ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMessageCatalog ¶
type MockMessageCatalog struct {
// contains filtered or unexported fields
}
MockMessageCatalog is a mock of MessageCatalog interface
func NewMockMessageCatalog ¶
func NewMockMessageCatalog(ctrl *gomock.Controller) *MockMessageCatalog
NewMockMessageCatalog creates a new mock instance
func (*MockMessageCatalog) EXPECT ¶
func (m *MockMessageCatalog) EXPECT() *MockMessageCatalogMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMessageCatalog) GetErrorWithCtx ¶
func (m *MockMessageCatalog) GetErrorWithCtx(ctx context.Context, msgCode int, msgParams ...interface{}) error
GetErrorWithCtx mocks base method
func (*MockMessageCatalog) GetMessageWithCtx ¶
func (m *MockMessageCatalog) GetMessageWithCtx(ctx context.Context, msgCode int, msgParams ...interface{}) *msgcat.Message
GetMessageWithCtx mocks base method
func (*MockMessageCatalog) LoadMessages ¶
func (m *MockMessageCatalog) LoadMessages(lang string, messages []msgcat.RawMessage) error
LoadMessages mocks base method
func (*MockMessageCatalog) WrapErrorWithCtx ¶
func (m *MockMessageCatalog) WrapErrorWithCtx(ctx context.Context, err error, msgCode int, msgParams ...interface{}) error
WrapErrorWithCtx mocks base method
type MockMessageCatalogMockRecorder ¶
type MockMessageCatalogMockRecorder struct {
// contains filtered or unexported fields
}
MockMessageCatalogMockRecorder is the mock recorder for MockMessageCatalog
func (*MockMessageCatalogMockRecorder) GetErrorWithCtx ¶
func (mr *MockMessageCatalogMockRecorder) GetErrorWithCtx(ctx, msgCode interface{}, msgParams ...interface{}) *gomock.Call
GetErrorWithCtx indicates an expected call of GetErrorWithCtx
func (*MockMessageCatalogMockRecorder) GetMessageWithCtx ¶
func (mr *MockMessageCatalogMockRecorder) GetMessageWithCtx(ctx, msgCode interface{}, msgParams ...interface{}) *gomock.Call
GetMessageWithCtx indicates an expected call of GetMessageWithCtx
func (*MockMessageCatalogMockRecorder) LoadMessages ¶
func (mr *MockMessageCatalogMockRecorder) LoadMessages(lang, messages interface{}) *gomock.Call
LoadMessages indicates an expected call of LoadMessages
func (*MockMessageCatalogMockRecorder) WrapErrorWithCtx ¶
func (mr *MockMessageCatalogMockRecorder) WrapErrorWithCtx(ctx, err, msgCode interface{}, msgParams ...interface{}) *gomock.Call
WrapErrorWithCtx indicates an expected call of WrapErrorWithCtx