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

testingmock

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 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
	Failed       bool
	Logs         []string
}

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) Helper

func (t *T) Helper()

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

func (*T) Log

func (t *T) Log(args ...interface{})

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

func (*T) Logf

func (t *T) Logf(f string, args ...interface{})

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