Help us shape the future of Go! Take the 2026 Go Developer Survey

testingmock

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	FailSilently bool
	Logs         []string
	// contains filtered or unexported fields
}

T is a mock of the testkit.tHelper interface.

func (*T) FailNow

func (t *T) FailNow()

FailNow is an implementation of testing.TB.FailNow().

func (*T) Failed

func (t *T) Failed() bool

Failed returns true if the test has failed.

func (*T) Fatal added in v0.11.0

func (t *T) Fatal(args ...any)

Fatal is an implementation of testing.TB.Fatal().

func (*T) Helper

func (t *T) Helper()

Helper is an implementation of testing.TB.Helper().

func (*T) Log

func (t *T) Log(args ...any)

Log is an implementation of testing.TB.Log().

func (*T) Logf

func (t *T) Logf(f string, args ...any)

Logf is an implementation of testing.TB.Logf().

Jump to

Keyboard shortcuts

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