test

package
v0.0.0-...-71c93ef Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDisplay

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

FakeDisplay is a fake display for test.

func NewFakeDisplay

func NewFakeDisplay(t *testing.T) *FakeDisplay

NewFakeDisplay creates a new FakeDisplay instance.

func (*FakeDisplay) Assert

func (f *FakeDisplay) Assert()

Assert executes the queue assertions.

func (*FakeDisplay) Exit

func (f *FakeDisplay) Exit(msg string, err error)

Exit exits the application after displaying a message and an error.

func (*FakeDisplay) ExitWithHelp

func (f *FakeDisplay) ExitWithHelp(msg, help string)

ExitWithHelp exits the application with a help message.

func (*FakeDisplay) Println

func (f *FakeDisplay) Println(args ...interface{})

Println prints the arguments to the output.

func (*FakeDisplay) QueueContainsAssertion

func (f *FakeDisplay) QueueContainsAssertion(contains string)

QueueContainsAssertion queues an assertion for later execution.

func (*FakeDisplay) String

func (f *FakeDisplay) String() string

String returns the output as a string.

Jump to

Keyboard shortcuts

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