Documentation ¶
Index ¶
- func Main(m *testing.M, fn func(m *M))
- type C
- func (c *C) Cleanup(f func())
- func (c *C) Error(args ...any)
- func (c *C) Errorf(format string, args ...any)
- func (c *C) Fail()
- func (c *C) FailNow()
- func (c *C) Failed() bool
- func (c *C) Fatal(args ...any)
- func (c *C) Fatalf(format string, args ...any)
- func (*C) Helper()
- func (*C) Log(args ...any)
- func (*C) Logf(format string, args ...any)
- func (*C) Name() string
- func (c *C) Setenv(key, value string)
- func (c *C) Skip(args ...any)
- func (c *C) SkipNow()
- func (c *C) Skipf(format string, args ...any)
- func (c *C) Skipped() bool
- func (c *C) TempDir() string
- type M
- type T
- func (t *T) Error(args ...any)
- func (t *T) Errorf(format string, args ...any)
- func (t *T) Fatal(args ...any)
- func (t *T) Fatalf(format string, args ...any)
- func (t *T) Log(args ...any)
- func (t *T) Logf(format string, args ...any)
- func (t *T) Name() string
- func (t *T) Skip(args ...any)
- func (t *T) Skipf(format string, args ...any)
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.