Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockIWidget
- func (m *MockIWidget[S, I]) EXPECT() *MockIWidgetMockRecorder[S, I]
- func (m *MockIWidget[S, I]) Mount(ctx context.Context, session live.Session[I]) (S, []live.Effect[I], error)
- func (m *MockIWidget[S, I]) Reduce(state S, event live.Event) (S, []live.Effect[I])
- func (m *MockIWidget[S, I]) Register() widget.Registration
- func (m *MockIWidget[S, I]) Render(state S) templ.Component
- func (m *MockIWidget[S, I]) Snapshot(state S) widget.Snapshot
- func (m *MockIWidget[S, I]) Unmount(ctx context.Context, session live.Session[I], state S)
- type MockIWidgetMockRecorder
- func (mr *MockIWidgetMockRecorder[S, I]) Mount(ctx, session any) *gomock.Call
- func (mr *MockIWidgetMockRecorder[S, I]) Reduce(state, event any) *gomock.Call
- func (mr *MockIWidgetMockRecorder[S, I]) Register() *gomock.Call
- func (mr *MockIWidgetMockRecorder[S, I]) Render(state any) *gomock.Call
- func (mr *MockIWidgetMockRecorder[S, I]) Snapshot(state any) *gomock.Call
- func (mr *MockIWidgetMockRecorder[S, I]) Unmount(ctx, session, state any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIWidget ¶
MockIWidget is a mock of IWidget interface.
func NewMockIWidget ¶
func NewMockIWidget[S any, I live.IIdentity](ctrl *gomock.Controller) *MockIWidget[S, I]
NewMockIWidget creates a new mock instance.
func (*MockIWidget[S, I]) EXPECT ¶
func (m *MockIWidget[S, I]) EXPECT() *MockIWidgetMockRecorder[S, I]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIWidget[S, I]) Mount ¶
func (m *MockIWidget[S, I]) Mount(ctx context.Context, session live.Session[I]) (S, []live.Effect[I], error)
Mount mocks base method.
func (*MockIWidget[S, I]) Reduce ¶
func (m *MockIWidget[S, I]) Reduce(state S, event live.Event) (S, []live.Effect[I])
Reduce mocks base method.
func (*MockIWidget[S, I]) Register ¶
func (m *MockIWidget[S, I]) Register() widget.Registration
Register mocks base method.
func (*MockIWidget[S, I]) Render ¶
func (m *MockIWidget[S, I]) Render(state S) templ.Component
Render mocks base method.
func (*MockIWidget[S, I]) Snapshot ¶
func (m *MockIWidget[S, I]) Snapshot(state S) widget.Snapshot
Snapshot mocks base method.
type MockIWidgetMockRecorder ¶
type MockIWidgetMockRecorder[S any, I live.IIdentity] struct { // contains filtered or unexported fields }
MockIWidgetMockRecorder is the mock recorder for MockIWidget.
func (*MockIWidgetMockRecorder[S, I]) Mount ¶
func (mr *MockIWidgetMockRecorder[S, I]) Mount(ctx, session any) *gomock.Call
Mount indicates an expected call of Mount.
func (*MockIWidgetMockRecorder[S, I]) Reduce ¶
func (mr *MockIWidgetMockRecorder[S, I]) Reduce(state, event any) *gomock.Call
Reduce indicates an expected call of Reduce.
func (*MockIWidgetMockRecorder[S, I]) Register ¶
func (mr *MockIWidgetMockRecorder[S, I]) Register() *gomock.Call
Register indicates an expected call of Register.
func (*MockIWidgetMockRecorder[S, I]) Render ¶
func (mr *MockIWidgetMockRecorder[S, I]) Render(state any) *gomock.Call
Render indicates an expected call of Render.
Click to show internal directories.
Click to hide internal directories.