testingc

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main added in v0.0.2

func Main(m *testing.M, fn func(m *M))

Types

type C

type C struct {
	testing.TB
	// contains filtered or unexported fields
}

func (*C) Cleanup

func (c *C) Cleanup(f func())

func (*C) Error

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

func (*C) Errorf

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

func (*C) Fail

func (c *C) Fail()

func (*C) FailNow

func (c *C) FailNow()

func (*C) Failed

func (c *C) Failed() bool

func (*C) Fatal

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

func (*C) Fatalf

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

func (*C) Helper

func (*C) Helper()

func (*C) Log

func (*C) Log(args ...any)

func (*C) Logf

func (*C) Logf(format string, args ...any)

func (*C) Name

func (*C) Name() string

func (*C) Setenv

func (c *C) Setenv(key, value string)

func (*C) Skip

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

func (*C) SkipNow

func (c *C) SkipNow()

func (*C) Skipf

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

func (*C) Skipped

func (c *C) Skipped() bool

func (*C) TempDir

func (c *C) TempDir() string

type M

type M struct {
	C
	// contains filtered or unexported fields
}

func (*M) Name added in v0.0.2

func (m *M) Name() string

func (*M) Run added in v0.0.2

func (m *M) Run() (code int)

type T

type T struct {
	C
	// contains filtered or unexported fields
}

func (*T) Error

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

func (*T) Errorf

func (t *T) Errorf(format string, args ...any)

func (*T) Fatal

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

func (*T) Fatalf

func (t *T) Fatalf(format string, args ...any)

func (*T) Log

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

func (*T) Logf

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

func (*T) Name

func (t *T) Name() string

func (*T) Skip

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

func (*T) Skipf

func (t *T) Skipf(format string, args ...any)

type TestResult

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

func Test

func Test(fn func(t *T)) *TestResult

func (*TestResult) Error

func (r *TestResult) Error() string

func (*TestResult) Failed

func (r *TestResult) Failed() bool

func (*TestResult) Logs

func (r *TestResult) Logs() []byte

func (*TestResult) Skipped

func (r *TestResult) Skipped() bool

Jump to

Keyboard shortcuts

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