mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
2f91679623
This change adds a core_generate_all make target. It installs the required tools and runs generate on the complete project. `golang/mock` is no longer maintained and a fork is available from the Uber folks. So the latter is used as tool. All the mock files have been regenerated and are part of the PR. The obsolete `tools` directory has been removed, as all the tools are now part of specific make targets. Co-authored-by: Silvan <silvan.reusser@gmail.com>
69 lines
2.1 KiB
Go
69 lines
2.1 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/zitadel/zitadel/internal/notification/channels (interfaces: Message)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package mock -destination ./mock/message.mock.go github.com/zitadel/zitadel/internal/notification/channels Message
|
|
//
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
eventstore "github.com/zitadel/zitadel/internal/eventstore"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockMessage is a mock of Message interface.
|
|
type MockMessage struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockMessageMockRecorder
|
|
}
|
|
|
|
// MockMessageMockRecorder is the mock recorder for MockMessage.
|
|
type MockMessageMockRecorder struct {
|
|
mock *MockMessage
|
|
}
|
|
|
|
// NewMockMessage creates a new mock instance.
|
|
func NewMockMessage(ctrl *gomock.Controller) *MockMessage {
|
|
mock := &MockMessage{ctrl: ctrl}
|
|
mock.recorder = &MockMessageMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockMessage) EXPECT() *MockMessageMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetContent mocks base method.
|
|
func (m *MockMessage) GetContent() (string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetContent")
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetContent indicates an expected call of GetContent.
|
|
func (mr *MockMessageMockRecorder) GetContent() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContent", reflect.TypeOf((*MockMessage)(nil).GetContent))
|
|
}
|
|
|
|
// GetTriggeringEvent mocks base method.
|
|
func (m *MockMessage) GetTriggeringEvent() eventstore.Event {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetTriggeringEvent")
|
|
ret0, _ := ret[0].(eventstore.Event)
|
|
return ret0
|
|
}
|
|
|
|
// GetTriggeringEvent indicates an expected call of GetTriggeringEvent.
|
|
func (mr *MockMessageMockRecorder) GetTriggeringEvent() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggeringEvent", reflect.TypeOf((*MockMessage)(nil).GetTriggeringEvent))
|
|
}
|