output

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTeamCityAttr

func ParseTeamCityAttr(line, attr string) string

func ParseTeamCityCount

func ParseTeamCityCount(line string) *int

func ParseTeamCityError

func ParseTeamCityError(line string) (name, message, details string)

func ParseTeamCityTestName

func ParseTeamCityTestName(line string) string

Types

type DeprecationInfo added in v0.7.0

type DeprecationInfo struct {
	TestName string // FQCN::method (from "Triggered by:" section) or source location
	Message  string // The deprecation message
	Source   string // Source file:line where the deprecation was triggered
}

DeprecationInfo represents a single deprecation extracted from PHPUnit output.

type DeprecationParser added in v0.7.0

type DeprecationParser struct {
	OnDeprecation func(info DeprecationInfo)
	// contains filtered or unexported fields
}

DeprecationParser parses PHPUnit plain-text deprecation output line by line.

func NewDeprecationParser added in v0.7.0

func NewDeprecationParser(onDeprecation func(info DeprecationInfo)) *DeprecationParser

NewDeprecationParser creates a parser that calls onDeprecation for each deprecation found.

func (*DeprecationParser) Flush added in v0.7.0

func (p *DeprecationParser) Flush()

Flush emits any pending deprecation (called when output ends).

func (*DeprecationParser) ParseLine added in v0.7.0

func (p *DeprecationParser) ParseLine(line string)

ParseLine processes a single line of PHPUnit output.

func (*DeprecationParser) Reset added in v0.7.0

func (p *DeprecationParser) Reset()

Reset clears the parser state for reuse (e.g., on retry).

type Output

type Output interface {
	Start(opts StartOptions)
	WorkerStart(workerID, testCount int)
	WorkerLine(workerID int, line string)
	WorkerComplete(workerID int, err error)
	CleanupProgress(completed, total int)
	Finish()
	SetOnCancel(fn func())
	AwaitRetry() RetryAction
	RetryStart(opts RetryStartOptions)
}

type RetryAction added in v0.6.0

type RetryAction int
const (
	ActionRetry RetryAction = iota
	ActionRerunAll
	ActionQuit
)

type RetryStartOptions added in v0.6.0

type RetryStartOptions struct {
	Attempt     int
	TestCount   int
	WorkerCount int
	WorkerIDs   []int
}

type StartOptions added in v0.5.0

type StartOptions struct {
	TestCount    int
	WorkerCount  int
	Filter       string
	Group        string
	ExcludeGroup string
	Version      string
}

type TeamCityOutput

type TeamCityOutput struct {
	// contains filtered or unexported fields
}

func NewTeamCityOutput

func NewTeamCityOutput() *TeamCityOutput

func (*TeamCityOutput) AwaitRetry added in v0.6.0

func (t *TeamCityOutput) AwaitRetry() RetryAction

func (*TeamCityOutput) CleanupProgress added in v0.5.0

func (t *TeamCityOutput) CleanupProgress(completed, total int)

func (*TeamCityOutput) Finish

func (t *TeamCityOutput) Finish()

func (*TeamCityOutput) RetryStart added in v0.6.0

func (t *TeamCityOutput) RetryStart(_ RetryStartOptions)

func (*TeamCityOutput) SetOnCancel added in v0.5.0

func (t *TeamCityOutput) SetOnCancel(fn func())

func (*TeamCityOutput) Start

func (t *TeamCityOutput) Start(opts StartOptions)

func (*TeamCityOutput) WorkerComplete

func (t *TeamCityOutput) WorkerComplete(workerID int, err error)

func (*TeamCityOutput) WorkerLine

func (t *TeamCityOutput) WorkerLine(workerID int, line string)

func (*TeamCityOutput) WorkerStart

func (t *TeamCityOutput) WorkerStart(workerID, testCount int)

type TerminalOutput

type TerminalOutput struct {
	// contains filtered or unexported fields
}

func NewTerminalOutput

func NewTerminalOutput() *TerminalOutput

func (*TerminalOutput) AwaitRetry added in v0.6.0

func (t *TerminalOutput) AwaitRetry() RetryAction

func (*TerminalOutput) CleanupProgress added in v0.5.0

func (t *TerminalOutput) CleanupProgress(completed, total int)

func (*TerminalOutput) Finish

func (t *TerminalOutput) Finish()

func (*TerminalOutput) RetryStart added in v0.6.0

func (t *TerminalOutput) RetryStart(_ RetryStartOptions)

func (*TerminalOutput) SetOnCancel added in v0.5.0

func (t *TerminalOutput) SetOnCancel(fn func())

func (*TerminalOutput) Start

func (t *TerminalOutput) Start(opts StartOptions)

func (*TerminalOutput) WorkerComplete

func (t *TerminalOutput) WorkerComplete(workerID int, err error)

func (*TerminalOutput) WorkerLine

func (t *TerminalOutput) WorkerLine(workerID int, line string)

func (*TerminalOutput) WorkerStart

func (t *TerminalOutput) WorkerStart(workerID, testCount int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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