finder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.2.0

type Options struct {
	IncludeTests      bool
	IncludeBenchmarks bool
	IncludeFuzz       bool
}

Options configures test discovery.

func DefaultOptions added in v0.2.0

func DefaultOptions() Options

DefaultOptions returns options that only include regular tests.

type TestInfo

type TestInfo struct {
	Name    string
	Package string
	File    string
	Type    TestType
}

TestInfo holds information about a discovered test function.

func FindTests

func FindTests(root string, opts Options) ([]TestInfo, error)

FindTests discovers test functions in the given directory tree.

type TestType added in v0.2.0

type TestType string

TestType identifies the kind of test function.

const (
	TypeTest      TestType = "test"
	TypeBenchmark TestType = "benchmark"
	TypeFuzz      TestType = "fuzz"
)

Jump to

Keyboard shortcuts

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