mocks

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	mock.Mock
}

Resolver is an autogenerated mock type for the Resolver type

func NewResolver added in v0.6.0

func NewResolver(t mockConstructorTestingTNewResolver) *Resolver

NewResolver creates a new instance of Resolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Resolver) Run

Run provides a mock function with given fields: tmpl, w

type Template

type Template struct {
	mock.Mock
}

Template is an autogenerated mock type for the Template type

func NewTemplate added in v0.6.0

func NewTemplate(t mockConstructorTestingTNewTemplate) *Template

NewTemplate creates a new instance of Template. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Template) EXPECT added in v0.7.0

func (_m *Template) EXPECT() *Template_Expecter

func (*Template) Execute

func (_m *Template) Execute(_a0 hcat.Recaller) ([]byte, error)

Execute provides a mock function with given fields: _a0

func (*Template) ID

func (_m *Template) ID() string

ID provides a mock function with given fields:

func (*Template) Notify added in v0.1.3

func (_m *Template) Notify(_a0 interface{}) bool

Notify provides a mock function with given fields: _a0

func (*Template) Render

func (_m *Template) Render(content []byte) (hcat.RenderResult, error)

Render provides a mock function with given fields: content

type Template_Execute_Call added in v0.7.0

type Template_Execute_Call struct {
	*mock.Call
}

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

func (*Template_Execute_Call) Return added in v0.7.0

func (_c *Template_Execute_Call) Return(_a0 []byte, _a1 error) *Template_Execute_Call

func (*Template_Execute_Call) Run added in v0.7.0

func (_c *Template_Execute_Call) Run(run func(_a0 hcat.Recaller)) *Template_Execute_Call

type Template_Expecter added in v0.7.0

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

func (*Template_Expecter) Execute added in v0.7.0

func (_e *Template_Expecter) Execute(_a0 interface{}) *Template_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 hcat.Recaller

func (*Template_Expecter) ID added in v0.7.0

ID is a helper method to define mock.On call

func (*Template_Expecter) Notify added in v0.7.0

func (_e *Template_Expecter) Notify(_a0 interface{}) *Template_Notify_Call

Notify is a helper method to define mock.On call

  • _a0 interface{}

func (*Template_Expecter) Render added in v0.7.0

func (_e *Template_Expecter) Render(content interface{}) *Template_Render_Call

Render is a helper method to define mock.On call

  • content []byte

type Template_ID_Call added in v0.7.0

type Template_ID_Call struct {
	*mock.Call
}

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

func (*Template_ID_Call) Return added in v0.7.0

func (_c *Template_ID_Call) Return(_a0 string) *Template_ID_Call

func (*Template_ID_Call) Run added in v0.7.0

func (_c *Template_ID_Call) Run(run func()) *Template_ID_Call

type Template_Notify_Call added in v0.7.0

type Template_Notify_Call struct {
	*mock.Call
}

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

func (*Template_Notify_Call) Return added in v0.7.0

func (*Template_Notify_Call) Run added in v0.7.0

func (_c *Template_Notify_Call) Run(run func(_a0 interface{})) *Template_Notify_Call

type Template_Render_Call added in v0.7.0

type Template_Render_Call struct {
	*mock.Call
}

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

func (*Template_Render_Call) Return added in v0.7.0

func (*Template_Render_Call) Run added in v0.7.0

func (_c *Template_Render_Call) Run(run func(content []byte)) *Template_Render_Call

type Watcher

type Watcher struct {
	mock.Mock
}

Watcher is an autogenerated mock type for the Watcher type

func NewWatcher added in v0.6.0

func NewWatcher(t mockConstructorTestingTNewWatcher) *Watcher

NewWatcher creates a new instance of Watcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Watcher) BufferReset added in v0.4.3

func (_m *Watcher) BufferReset(_a0 hcat.Notifier)

BufferReset provides a mock function with given fields: _a0

func (*Watcher) Buffering added in v0.5.0

func (_m *Watcher) Buffering(_a0 hcat.Notifier) bool

Buffering provides a mock function with given fields: _a0

func (*Watcher) Clients added in v0.5.0

func (_m *Watcher) Clients() hcat.Looker

Clients provides a mock function with given fields:

func (*Watcher) Complete

func (_m *Watcher) Complete(_a0 hcat.Notifier) bool

Complete provides a mock function with given fields: _a0

func (*Watcher) Deregister added in v0.5.0

func (_m *Watcher) Deregister(ns ...hcat.Notifier)

Deregister provides a mock function with given fields: ns

func (*Watcher) EXPECT added in v0.7.0

func (_m *Watcher) EXPECT() *Watcher_Expecter

func (*Watcher) MarkForSweep added in v0.5.0

func (_m *Watcher) MarkForSweep(notifier hcat.IDer)

MarkForSweep provides a mock function with given fields: notifier

func (*Watcher) Recaller

func (_m *Watcher) Recaller(_a0 hcat.Notifier) hcat.Recaller

Recaller provides a mock function with given fields: _a0

func (*Watcher) Register added in v0.4.0

func (_m *Watcher) Register(ns ...hcat.Notifier) error

Register provides a mock function with given fields: ns

func (*Watcher) SetBufferPeriod

func (_m *Watcher) SetBufferPeriod(min time.Duration, max time.Duration, tmplIDs ...string)

SetBufferPeriod provides a mock function with given fields: min, max, tmplIDs

func (*Watcher) Size

func (_m *Watcher) Size() int

Size provides a mock function with given fields:

func (*Watcher) Stop

func (_m *Watcher) Stop()

Stop provides a mock function with given fields:

func (*Watcher) Sweep added in v0.1.3

func (_m *Watcher) Sweep(notifier hcat.IDer)

Sweep provides a mock function with given fields: notifier

func (*Watcher) WaitCh

func (_m *Watcher) WaitCh(_a0 context.Context) <-chan error

WaitCh provides a mock function with given fields: _a0

func (*Watcher) Watch added in v0.5.0

func (_m *Watcher) Watch(_a0 context.Context, _a1 chan string) error

Watch provides a mock function with given fields: _a0, _a1

type Watcher_BufferReset_Call added in v0.7.0

type Watcher_BufferReset_Call struct {
	*mock.Call
}

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

func (*Watcher_BufferReset_Call) Return added in v0.7.0

func (*Watcher_BufferReset_Call) Run added in v0.7.0

type Watcher_Buffering_Call added in v0.7.0

type Watcher_Buffering_Call struct {
	*mock.Call
}

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

func (*Watcher_Buffering_Call) Return added in v0.7.0

func (*Watcher_Buffering_Call) Run added in v0.7.0

type Watcher_Clients_Call added in v0.7.0

type Watcher_Clients_Call struct {
	*mock.Call
}

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

func (*Watcher_Clients_Call) Return added in v0.7.0

func (*Watcher_Clients_Call) Run added in v0.7.0

func (_c *Watcher_Clients_Call) Run(run func()) *Watcher_Clients_Call

type Watcher_Complete_Call added in v0.7.0

type Watcher_Complete_Call struct {
	*mock.Call
}

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

func (*Watcher_Complete_Call) Return added in v0.7.0

func (*Watcher_Complete_Call) Run added in v0.7.0

func (_c *Watcher_Complete_Call) Run(run func(_a0 hcat.Notifier)) *Watcher_Complete_Call

type Watcher_Deregister_Call added in v0.7.0

type Watcher_Deregister_Call struct {
	*mock.Call
}

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

func (*Watcher_Deregister_Call) Return added in v0.7.0

func (*Watcher_Deregister_Call) Run added in v0.7.0

type Watcher_Expecter added in v0.7.0

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

func (*Watcher_Expecter) BufferReset added in v0.7.0

func (_e *Watcher_Expecter) BufferReset(_a0 interface{}) *Watcher_BufferReset_Call

BufferReset is a helper method to define mock.On call

  • _a0 hcat.Notifier

func (*Watcher_Expecter) Buffering added in v0.7.0

func (_e *Watcher_Expecter) Buffering(_a0 interface{}) *Watcher_Buffering_Call

Buffering is a helper method to define mock.On call

  • _a0 hcat.Notifier

func (*Watcher_Expecter) Clients added in v0.7.0

func (_e *Watcher_Expecter) Clients() *Watcher_Clients_Call

Clients is a helper method to define mock.On call

func (*Watcher_Expecter) Complete added in v0.7.0

func (_e *Watcher_Expecter) Complete(_a0 interface{}) *Watcher_Complete_Call

Complete is a helper method to define mock.On call

  • _a0 hcat.Notifier

func (*Watcher_Expecter) Deregister added in v0.7.0

func (_e *Watcher_Expecter) Deregister(ns ...interface{}) *Watcher_Deregister_Call

Deregister is a helper method to define mock.On call

  • ns ...hcat.Notifier

func (*Watcher_Expecter) MarkForSweep added in v0.7.0

func (_e *Watcher_Expecter) MarkForSweep(notifier interface{}) *Watcher_MarkForSweep_Call

MarkForSweep is a helper method to define mock.On call

  • notifier hcat.IDer

func (*Watcher_Expecter) Recaller added in v0.7.0

func (_e *Watcher_Expecter) Recaller(_a0 interface{}) *Watcher_Recaller_Call

Recaller is a helper method to define mock.On call

  • _a0 hcat.Notifier

func (*Watcher_Expecter) Register added in v0.7.0

func (_e *Watcher_Expecter) Register(ns ...interface{}) *Watcher_Register_Call

Register is a helper method to define mock.On call

  • ns ...hcat.Notifier

func (*Watcher_Expecter) SetBufferPeriod added in v0.7.0

func (_e *Watcher_Expecter) SetBufferPeriod(min interface{}, max interface{}, tmplIDs ...interface{}) *Watcher_SetBufferPeriod_Call

SetBufferPeriod is a helper method to define mock.On call

  • min time.Duration
  • max time.Duration
  • tmplIDs ...string

func (*Watcher_Expecter) Size added in v0.7.0

func (_e *Watcher_Expecter) Size() *Watcher_Size_Call

Size is a helper method to define mock.On call

func (*Watcher_Expecter) Stop added in v0.7.0

func (_e *Watcher_Expecter) Stop() *Watcher_Stop_Call

Stop is a helper method to define mock.On call

func (*Watcher_Expecter) Sweep added in v0.7.0

func (_e *Watcher_Expecter) Sweep(notifier interface{}) *Watcher_Sweep_Call

Sweep is a helper method to define mock.On call

  • notifier hcat.IDer

func (*Watcher_Expecter) WaitCh added in v0.7.0

func (_e *Watcher_Expecter) WaitCh(_a0 interface{}) *Watcher_WaitCh_Call

WaitCh is a helper method to define mock.On call

  • _a0 context.Context

func (*Watcher_Expecter) Watch added in v0.7.0

func (_e *Watcher_Expecter) Watch(_a0 interface{}, _a1 interface{}) *Watcher_Watch_Call

Watch is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 chan string

type Watcher_MarkForSweep_Call added in v0.7.0

type Watcher_MarkForSweep_Call struct {
	*mock.Call
}

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

func (*Watcher_MarkForSweep_Call) Return added in v0.7.0

func (*Watcher_MarkForSweep_Call) Run added in v0.7.0

func (_c *Watcher_MarkForSweep_Call) Run(run func(notifier hcat.IDer)) *Watcher_MarkForSweep_Call

type Watcher_Recaller_Call added in v0.7.0

type Watcher_Recaller_Call struct {
	*mock.Call
}

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

func (*Watcher_Recaller_Call) Return added in v0.7.0

func (*Watcher_Recaller_Call) Run added in v0.7.0

func (_c *Watcher_Recaller_Call) Run(run func(_a0 hcat.Notifier)) *Watcher_Recaller_Call

type Watcher_Register_Call added in v0.7.0

type Watcher_Register_Call struct {
	*mock.Call
}

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

func (*Watcher_Register_Call) Return added in v0.7.0

func (*Watcher_Register_Call) Run added in v0.7.0

func (_c *Watcher_Register_Call) Run(run func(ns ...hcat.Notifier)) *Watcher_Register_Call

type Watcher_SetBufferPeriod_Call added in v0.7.0

type Watcher_SetBufferPeriod_Call struct {
	*mock.Call
}

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

func (*Watcher_SetBufferPeriod_Call) Return added in v0.7.0

func (*Watcher_SetBufferPeriod_Call) Run added in v0.7.0

type Watcher_Size_Call added in v0.7.0

type Watcher_Size_Call struct {
	*mock.Call
}

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

func (*Watcher_Size_Call) Return added in v0.7.0

func (_c *Watcher_Size_Call) Return(_a0 int) *Watcher_Size_Call

func (*Watcher_Size_Call) Run added in v0.7.0

func (_c *Watcher_Size_Call) Run(run func()) *Watcher_Size_Call

type Watcher_Stop_Call added in v0.7.0

type Watcher_Stop_Call struct {
	*mock.Call
}

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

func (*Watcher_Stop_Call) Return added in v0.7.0

func (_c *Watcher_Stop_Call) Return() *Watcher_Stop_Call

func (*Watcher_Stop_Call) Run added in v0.7.0

func (_c *Watcher_Stop_Call) Run(run func()) *Watcher_Stop_Call

type Watcher_Sweep_Call added in v0.7.0

type Watcher_Sweep_Call struct {
	*mock.Call
}

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

func (*Watcher_Sweep_Call) Return added in v0.7.0

func (_c *Watcher_Sweep_Call) Return() *Watcher_Sweep_Call

func (*Watcher_Sweep_Call) Run added in v0.7.0

func (_c *Watcher_Sweep_Call) Run(run func(notifier hcat.IDer)) *Watcher_Sweep_Call

type Watcher_WaitCh_Call added in v0.7.0

type Watcher_WaitCh_Call struct {
	*mock.Call
}

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

func (*Watcher_WaitCh_Call) Return added in v0.7.0

func (_c *Watcher_WaitCh_Call) Return(_a0 <-chan error) *Watcher_WaitCh_Call

func (*Watcher_WaitCh_Call) Run added in v0.7.0

func (_c *Watcher_WaitCh_Call) Run(run func(_a0 context.Context)) *Watcher_WaitCh_Call

type Watcher_Watch_Call added in v0.7.0

type Watcher_Watch_Call struct {
	*mock.Call
}

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

func (*Watcher_Watch_Call) Return added in v0.7.0

func (_c *Watcher_Watch_Call) Return(_a0 error) *Watcher_Watch_Call

func (*Watcher_Watch_Call) Run added in v0.7.0

func (_c *Watcher_Watch_Call) Run(run func(_a0 context.Context, _a1 chan string)) *Watcher_Watch_Call

Jump to

Keyboard shortcuts

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