testutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: AGPL-3.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 StdinMock added in v0.7.1

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

func MockStdin added in v0.7.1

func MockStdin(input string) (*StdinMock, error)

func MockStdinWithLines added in v0.7.1

func MockStdinWithLines(lines ...string) (*StdinMock, error)

func (*StdinMock) Restore added in v0.7.1

func (m *StdinMock) Restore()

type StdoutCapture

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

func CaptureStdout

func CaptureStdout() *StdoutCapture

func (*StdoutCapture) AssertContains

func (c *StdoutCapture) AssertContains(t *testing.T, text string)

func (*StdoutCapture) AssertNotContains

func (c *StdoutCapture) AssertNotContains(t *testing.T, text string)

func (*StdoutCapture) Contains

func (c *StdoutCapture) Contains(text string) bool

func (*StdoutCapture) GetOutput

func (c *StdoutCapture) GetOutput() string

func (*StdoutCapture) Restore

func (c *StdoutCapture) Restore()

Jump to

Keyboard shortcuts

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