mocks

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIWidget

type MockIWidget[S any, I live.IIdentity] struct {
	// contains filtered or unexported fields
}

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.

func (*MockIWidget[S, I]) Unmount

func (m *MockIWidget[S, I]) Unmount(ctx context.Context, session live.Session[I], state S)

Unmount 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.

func (*MockIWidgetMockRecorder[S, I]) Snapshot

func (mr *MockIWidgetMockRecorder[S, I]) Snapshot(state any) *gomock.Call

Snapshot indicates an expected call of Snapshot.

func (*MockIWidgetMockRecorder[S, I]) Unmount

func (mr *MockIWidgetMockRecorder[S, I]) Unmount(ctx, session, state any) *gomock.Call

Unmount indicates an expected call of Unmount.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL