view

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	mock.Mock
}

View is an autogenerated mock type for the View type

func NewView

func NewView(t interface {
	mock.TestingT
	Cleanup(func())
}) *View

NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*View) EXPECT

func (_m *View) EXPECT() *View_Expecter

func (*View) Exists

func (_m *View) Exists(_a0 string) bool

Exists provides a mock function with given fields: _a0

func (*View) GetShared

func (_m *View) GetShared() map[string]interface{}

GetShared provides a mock function with no fields

func (*View) Share

func (_m *View) Share(key string, value interface{})

Share provides a mock function with given fields: key, value

func (*View) Shared

func (_m *View) Shared(key string, def ...interface{}) interface{}

Shared provides a mock function with given fields: key, def

type View_Exists_Call

type View_Exists_Call struct {
	*mock.Call
}

View_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'

func (*View_Exists_Call) Return

func (_c *View_Exists_Call) Return(_a0 bool) *View_Exists_Call

func (*View_Exists_Call) Run

func (_c *View_Exists_Call) Run(run func(_a0 string)) *View_Exists_Call

func (*View_Exists_Call) RunAndReturn

func (_c *View_Exists_Call) RunAndReturn(run func(string) bool) *View_Exists_Call

type View_Expecter

type View_Expecter struct {
	// contains filtered or unexported fields
}

func (*View_Expecter) Exists

func (_e *View_Expecter) Exists(_a0 interface{}) *View_Exists_Call

Exists is a helper method to define mock.On call

  • _a0 string

func (*View_Expecter) GetShared

func (_e *View_Expecter) GetShared() *View_GetShared_Call

GetShared is a helper method to define mock.On call

func (*View_Expecter) Share

func (_e *View_Expecter) Share(key interface{}, value interface{}) *View_Share_Call

Share is a helper method to define mock.On call

  • key string
  • value interface{}

func (*View_Expecter) Shared

func (_e *View_Expecter) Shared(key interface{}, def ...interface{}) *View_Shared_Call

Shared is a helper method to define mock.On call

  • key string
  • def ...interface{}

type View_GetShared_Call

type View_GetShared_Call struct {
	*mock.Call
}

View_GetShared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShared'

func (*View_GetShared_Call) Return

func (_c *View_GetShared_Call) Return(_a0 map[string]interface{}) *View_GetShared_Call

func (*View_GetShared_Call) Run

func (_c *View_GetShared_Call) Run(run func()) *View_GetShared_Call

func (*View_GetShared_Call) RunAndReturn

func (_c *View_GetShared_Call) RunAndReturn(run func() map[string]interface{}) *View_GetShared_Call

type View_Share_Call

type View_Share_Call struct {
	*mock.Call
}

View_Share_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Share'

func (*View_Share_Call) Return

func (_c *View_Share_Call) Return() *View_Share_Call

func (*View_Share_Call) Run

func (_c *View_Share_Call) Run(run func(key string, value interface{})) *View_Share_Call

func (*View_Share_Call) RunAndReturn

func (_c *View_Share_Call) RunAndReturn(run func(string, interface{})) *View_Share_Call

type View_Shared_Call

type View_Shared_Call struct {
	*mock.Call
}

View_Shared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shared'

func (*View_Shared_Call) Return

func (_c *View_Shared_Call) Return(_a0 interface{}) *View_Shared_Call

func (*View_Shared_Call) Run

func (_c *View_Shared_Call) Run(run func(key string, def ...interface{})) *View_Shared_Call

func (*View_Shared_Call) RunAndReturn

func (_c *View_Shared_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *View_Shared_Call

Jump to

Keyboard shortcuts

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