selection

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPattern

func RunPattern(tests []string) string

Types

type NarrowOptions

type NarrowOptions struct {
	Graph      *graph.Graph
	Loader     *index.Loader
	Changes    []vcs.Change
	BaseCommit string
}

type Narrowed

type Narrowed struct {
	Result
	Plans            []PackagePlan
	NarrowedPackages int
	DroppedPackages  int
	SelectedTests    int
	Blocked          []string
	Enabled          bool
	DisabledReason   string
}

func Narrow

func Narrow(res Result, opts NarrowOptions) Narrowed

type Options

type Options struct {
	Graph   *graph.Graph
	Changes []vcs.Change
}

type PackagePlan

type PackagePlan struct {
	ImportPath string
	Reason     Reason
	Tests      []string
	AllTests   []string
	FullReason string
}

func (PackagePlan) ExcludedTests

func (p PackagePlan) ExcludedTests() []string

func (PackagePlan) Narrowed

func (p PackagePlan) Narrowed() bool

type Reason

type Reason string
const (
	ReasonDirect    Reason = "direct"
	ReasonDependent Reason = "dependent"
	ReasonFallback  Reason = "fallback"
)

type Result

type Result struct {
	Packages        []string
	Reasons         map[string]Reason
	ChangedPackages []string
	Unattributed    []string
	SelectAll       bool
	SelectAllReason string
}

func All

func All(g *graph.Graph, reason string) Result

func Select

func Select(opts Options) Result

Jump to

Keyboard shortcuts

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