gotest

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package gotest wraps `go test -json -race ./...`. Whole-run: findings are never suppressed by the scope layer — a test broken by your change may live in an untouched file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEvents

func ParseEvents(raw []byte) []domain.Finding

ParseEvents walks the event stream and produces one finding per failing test or per package that failed to build. First `file:line:` frame captured from Output events is used for the finding location.

Types

type Gate

type Gate struct{}

func (Gate) LineScoped

func (Gate) LineScoped() bool

func (Gate) Name

func (Gate) Name() string

func (Gate) Run

func (Gate) Run(ctx context.Context, root string) (domain.GateResult, error)

Jump to

Keyboard shortcuts

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