Documentation
¶
Index ¶
- func AtLeast(value, floor int) int
- func ContainsAny(args []string, needles ...string) bool
- func ContainsPrefix(args []string, prefix string) bool
- func HasCommand(args []string, head, sub string) bool
- func LatencyBudget(ms int) time.Duration
- func OutputBudget(lines int) engine.OutputBudget
- func ParseCombined(exec engine.Execution) int
- func ParseStderrFirst(exec engine.Execution) int
- func ParseStdout(exec engine.Execution) int
- func WithSummary(profile engine.Profile, config SummaryConfig) engine.Profile
- type SummaryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
func ContainsPrefix ¶
func HasCommand ¶
func LatencyBudget ¶
func OutputBudget ¶
func OutputBudget(lines int) engine.OutputBudget
func ParseCombined ¶
func ParseStderrFirst ¶
func ParseStdout ¶
func WithSummary ¶ added in v0.5.0
func WithSummary(profile engine.Profile, config SummaryConfig) engine.Profile
Types ¶
type SummaryConfig ¶ added in v0.5.0
type SummaryConfig struct {
StreamPreference string
Budget engine.OutputBudget
LatencyBudget int
Render func(engine.Invocation, engine.Execution) string
StreamRender engine.StreamRenderFactory
ParseBytes func(engine.Execution) int
}
func CombinedBufferedSummary ¶ added in v0.5.0
func StdoutSummary ¶ added in v0.5.0
func StdoutSummary(maxLines, floor, latencyMS int, preference string, render func(string) string, stream func(engine.OutputBudget) engine.StreamReducer) SummaryConfig
Click to show internal directories.
Click to hide internal directories.