Documentation
¶
Index ¶
- func ParseTeamCityAttr(line, attr string) string
- func ParseTeamCityCount(line string) *int
- func ParseTeamCityError(line string) (name, message, details string)
- func ParseTeamCityTestName(line string) string
- type DeprecationInfo
- type DeprecationParser
- type Output
- type RetryAction
- type RetryStartOptions
- type StartOptions
- type TeamCityOutput
- func (t *TeamCityOutput) AwaitRetry() RetryAction
- func (t *TeamCityOutput) CleanupProgress(completed, total int)
- func (t *TeamCityOutput) Finish()
- func (t *TeamCityOutput) RetryStart(_ RetryStartOptions)
- func (t *TeamCityOutput) SetOnCancel(fn func())
- func (t *TeamCityOutput) Start(opts StartOptions)
- func (t *TeamCityOutput) WorkerComplete(workerID int, err error)
- func (t *TeamCityOutput) WorkerLine(workerID int, line string)
- func (t *TeamCityOutput) WorkerStart(workerID, testCount int)
- type TerminalOutput
- func (t *TerminalOutput) AwaitRetry() RetryAction
- func (t *TerminalOutput) CleanupProgress(completed, total int)
- func (t *TerminalOutput) Finish()
- func (t *TerminalOutput) RetryStart(_ RetryStartOptions)
- func (t *TerminalOutput) SetOnCancel(fn func())
- func (t *TerminalOutput) Start(opts StartOptions)
- func (t *TerminalOutput) WorkerComplete(workerID int, err error)
- func (t *TerminalOutput) WorkerLine(workerID int, line string)
- func (t *TerminalOutput) WorkerStart(workerID, testCount int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTeamCityAttr ¶
func ParseTeamCityCount ¶
func ParseTeamCityError ¶
func ParseTeamCityTestName ¶
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 StartOptions ¶ added in v0.5.0
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)
Click to show internal directories.
Click to hide internal directories.