internal

package
v0.0.0-...-3bb151c Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatErrorMessage

func FormatErrorMessage(expectOrNot any, actual any, neg bool) string

func Helper

func Helper[X any](skip int, x X) X

Types

type Reporter

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

func (*Reporter) Error

func (r *Reporter) Error(t TB, err error)

func (*Reporter) Fatal

func (r *Reporter) Fatal(t TB, err error)

type TB

type TB interface {
	Context() context.Context

	TempDir() string
	Output() io.Writer
	Chdir(dir string)
	Setenv(key, value string)

	Cleanup(func())

	Helper()
	Skip(args ...any)
}

type TBController

type TBController interface {
	Skipped() bool
	Error(args ...any)
	Fatal(args ...any)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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