mocks

package
v0.6.0-beta1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MPL-2.0 Imports: 5 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 testing.TB) *Resolver

NewResolver creates a new instance of Resolver. It also registers the testing.TB 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 testing.TB) *Template

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

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 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 testing.TB) *Watcher

NewWatcher creates a new instance of Watcher. It also registers the testing.TB 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) 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

Jump to

Keyboard shortcuts

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