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: 0

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