testutil

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: AGPL-3.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 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