test

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunningInTestExecutor added in v0.15.0

func IsRunningInTestExecutor() bool

Types

type MemoryBuffer

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

MemoryBuffer has both Write and Close methods for use as io.WriteCloser when testing (instead of os.Stdout), so tests can assert.Equal results etc.

func NewMemoryBuffer

func NewMemoryBuffer() *MemoryBuffer

func (*MemoryBuffer) Close

func (b *MemoryBuffer) Close() error

func (*MemoryBuffer) String

func (b *MemoryBuffer) String() string

func (*MemoryBuffer) Write

func (b *MemoryBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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