Documentation ¶
Index ¶
- func AllocsPerRun(runs int, f func()) (avg float64)
- func CoverMode() string
- func Coverage() float64
- func Init()
- func RegisterCover(c testing.Cover)
- func RunExamples(matchString func(pat, str string) (bool, error), ...) (ok bool)
- func RunTests(matchString func(pat, str string) (bool, error), tests []testing.InternalTest) (ok bool)
- func Short() bool
- func Verbose() bool
- type F
- func (f *F) Add(args ...any)
- func (c *F) Cleanup(f func())
- func (f *F) CleanupTempDirs()
- func (c *F) Error(args ...any)
- func (c *F) Errorf(format string, args ...any)
- func (f *F) Fail()
- func (c *F) FailNow()
- func (c *F) Failed() bool
- func (c *F) Fatal(args ...any)
- func (c *F) Fatalf(format string, args ...any)
- func (f *F) Fuzz(ff any)
- func (f *F) Helper()
- func (c *F) Log(args ...any)
- func (c *F) Logf(format string, args ...any)
- func (c *F) Name() string
- func (c *F) Setenv(key, value string)
- func (c *F) Skip(args ...any)
- func (c *F) SkipNow()
- func (c *F) Skipf(format string, args ...any)
- func (f *F) Skipped() bool
- func (f *F) TempDir() string
- type M
- type T
- func (t *T) Cleanup(f func())
- func (t *T) CleanupTempDirs()
- func (t *T) Deadline() (deadline time.Time, ok bool)
- func (t *T) Error(args ...any)
- func (t *T) Errorf(format string, args ...any)
- func (t *T) Fail()
- func (t *T) FailNow()
- func (t *T) Failed() bool
- func (t *T) Fatal(args ...any)
- func (t *T) Fatalf(format string, args ...any)
- func (t *T) Helper()
- func (t *T) Log(args ...any)
- func (t *T) Logf(format string, args ...any)
- func (t *T) Name() string
- func (t *T) Parallel()
- func (t *T) Run(name string, f func(t *T)) bool
- func (t *T) Setenv(key, value string)
- func (t *T) Skip(args ...any)
- func (t *T) SkipNow()
- func (t *T) Skipf(format string, args ...any)
- func (t *T) Skipped() bool
- func (t *T) TempDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocsPerRun ¶
func RegisterCover ¶
func RunExamples ¶
Types ¶
type F ¶
func (*F) CleanupTempDirs ¶
func (f *F) CleanupTempDirs()
type T ¶
type T struct {
TempDirs []string
}
T can be used to terminate the current fuzz iteration without terminating the whole fuzz run. To do so, simply panic with the text "GO-FUZZ-BUILD-PANIC" and the fuzzer will recover.
func (*T) CleanupTempDirs ¶
func (t *T) CleanupTempDirs()
Click to show internal directories.
Click to hide internal directories.