testutil

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextForTest

func ContextForTest(t testing.TB) context.Context

func TrackGoroutines

func TrackGoroutines(ctx context.Context, t testing.TB, fn func(context.Context))

Types

type Dir added in v1.4.0

type Dir struct {
	Name  string
	Files []DirEntry
}

func (*Dir) Close added in v1.4.0

func (d *Dir) Close() error

func (*Dir) Open added in v1.4.0

func (d *Dir) Open(name string) (fs.File, error)

func (*Dir) Read added in v1.4.0

func (d *Dir) Read(b []byte) (int, error)

func (*Dir) ReadDir added in v1.4.0

func (d *Dir) ReadDir(n int) ([]fs.DirEntry, error)

func (*Dir) Stat added in v1.4.0

func (d *Dir) Stat() (fs.FileInfo, error)

type DirEntry added in v1.4.0

type DirEntry interface {
	fs.File
	// contains filtered or unexported methods
}

type File added in v1.4.0

type File struct {
	Name string
	Data FileData
}

func (*File) Close added in v1.4.0

func (f *File) Close() error

func (*File) Read added in v1.4.0

func (f *File) Read(b []byte) (int, error)

func (*File) Stat added in v1.4.0

func (f *File) Stat() (fs.FileInfo, error)

type FileData added in v1.4.0

type FileData interface {
	io.Reader
	Len() int
}

type LeakedGoroutines

type LeakedGoroutines struct {
	Goroutine []*profile.Sample
}

func (*LeakedGoroutines) Error

func (l *LeakedGoroutines) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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