test_logz

package
v0.0.0-...-381c4e2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Print  = errors.Log().Print
	Printf = errors.Log().Printf
)

Functions

This section is empty.

Types

type StackInfo

type StackInfo = errors.StackInfo

func MakeStackInfo

func MakeStackInfo(t *T, skip int) (si StackInfo)

type T

type T struct {
	*testing.T
	// contains filtered or unexported fields
}

func (*T) AssertEOF

func (t *T) AssertEOF(err error)

func (*T) AssertEqual

func (t *T) AssertEqual(a, b any)

func (*T) AssertEqualStrings

func (t *T) AssertEqualStrings(a, b string)

func (*T) AssertError

func (t *T) AssertError(err error)

func (*T) AssertErrorEquals

func (t *T) AssertErrorEquals(expected, actual error)

func (*T) AssertNoError

func (t *T) AssertNoError(err error)

func (*T) Errorf

func (t *T) Errorf(format string, args ...interface{})

func (*T) Fatalf

func (t *T) Fatalf(format string, args ...interface{})

func (*T) Log

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

func (*T) Logf

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

func (*T) NotEqual

func (t *T) NotEqual(a, b any)

TODO-P3 move to AssertNotEqual

func (*T) Skip

func (t *T) Skip(skip int) T

func (*T) SkipTest

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

type TC

type TC struct {
	T
	StackInfo
}

func (*TC) AssertEOF

func (t *TC) AssertEOF(err error)

func (*TC) AssertEqual

func (t *TC) AssertEqual(a, b any)

func (*TC) AssertEqualStrings

func (t *TC) AssertEqualStrings(a, b string)

func (*TC) AssertError

func (t *TC) AssertError(err error)

func (*TC) AssertErrorEquals

func (t *TC) AssertErrorEquals(expected, actual error)

func (*TC) AssertNoError

func (t *TC) AssertNoError(err error)

func (*TC) Errorf

func (t *TC) Errorf(format string, args ...interface{})

func (*TC) Fatalf

func (t *TC) Fatalf(format string, args ...interface{})

func (*TC) Log

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

func (*TC) Logf

func (t *TC) Logf(format string, args ...interface{})

func (*TC) NotEqual

func (t *TC) NotEqual(a, b any)

TODO-P3 move to AssertNotEqual

Jump to

Keyboard shortcuts

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