testing

package
v0.2.10-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainStart = testing.MainStart

Functions

func IntoContext

func IntoContext(ctx context.Context, t TTest) context.Context

Types

type ErrReader added in v0.1.9

type ErrReader struct{}

func (*ErrReader) Read added in v0.1.9

func (e *ErrReader) Read(p []byte) (n int, err error)

type InternalTest

type InternalTest = testing.InternalTest

type MockT added in v0.0.9

type MockT struct {
	NameVar           string
	FailedVar         bool
	ImmeditateFailVar bool
	SkippedVar        bool
}

func (*MockT) Cleanup added in v0.0.9

func (c *MockT) Cleanup(f func())

func (*MockT) Deadline added in v0.0.9

func (t *MockT) Deadline() (deadline time.Time, ok bool)

func (*MockT) Error added in v0.0.9

func (c *MockT) Error(args ...any)

func (*MockT) Errorf added in v0.0.9

func (c *MockT) Errorf(format string, args ...any)

func (*MockT) Fail added in v0.0.9

func (c *MockT) Fail()

func (*MockT) FailNow added in v0.0.9

func (c *MockT) FailNow()

func (*MockT) Failed added in v0.0.9

func (c *MockT) Failed() bool

func (*MockT) Fatal added in v0.0.9

func (c *MockT) Fatal(args ...any)

func (*MockT) Fatalf added in v0.0.9

func (c *MockT) Fatalf(format string, args ...any)

func (*MockT) Helper added in v0.0.9

func (c *MockT) Helper()

func (*MockT) Log added in v0.0.9

func (c *MockT) Log(args ...any)

func (*MockT) Logf added in v0.0.9

func (c *MockT) Logf(format string, args ...any)

func (*MockT) Name added in v0.0.9

func (c *MockT) Name() string

func (*MockT) Parallel added in v0.0.9

func (t *MockT) Parallel()

func (*MockT) Run added in v0.0.9

func (nt *MockT) Run(name string, f func(t *T)) bool

func (*MockT) Setenv added in v0.0.9

func (t *MockT) Setenv(key, value string)

func (*MockT) Skip added in v0.0.9

func (c *MockT) Skip(args ...any)

func (*MockT) SkipNow added in v0.0.9

func (c *MockT) SkipNow()

func (*MockT) Skipf added in v0.0.9

func (c *MockT) Skipf(format string, args ...any)

func (*MockT) Skipped added in v0.0.9

func (c *MockT) Skipped() bool

func (*MockT) TempDir added in v0.0.9

func (c *MockT) TempDir() string

type T

type T = testing.T

type TTest added in v0.2.8

type TTest interface {
	Cleanup(func())
	Deadline() (deadline time.Time, ok bool)
	Error(args ...any)
	Errorf(format string, args ...any)
	Fail()
	FailNow()
	Failed() bool
	Fatal(args ...any)
	Fatalf(format string, args ...any)
	Helper()
	Log(args ...any)
	Logf(format string, args ...any)
	Name() string
	Parallel()
	Run(name string, f func(t *T)) bool
	Setenv(key, value string)
	Skip(args ...any)
	SkipNow()
	Skipf(format string, args ...any)
	Skipped() bool
	TempDir() string
}

func FromContext

func FromContext(ctx context.Context) TTest

Jump to

Keyboard shortcuts

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