fakes

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pager added in v0.39.0

type Pager struct {
	Buffer *bytes.Buffer
}

Pager is a mock pager that remembers what is written to it. It can also be used as a fake io.WriteCloser.

func (*Pager) Close added in v0.39.0

func (f *Pager) Close() error

func (*Pager) Write added in v0.39.0

func (f *Pager) Write(p []byte) (n int, err error)

type TimeFormatter

type TimeFormatter struct {
	Response string
}

TimeFormatter is a mock of the TimeFormatter interface

func (*TimeFormatter) Format

func (tf *TimeFormatter) Format(t time.Time) string

Format returns the mocked response.

Jump to

Keyboard shortcuts

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