Documentation
¶
Index ¶
- Constants
- func FormatBuildSummary(summary *BuildSummary, command string) string
- func FormatTestSummary(summary *TestSummary, command string) string
- func IsBinlogFile(path string) bool
- type BinlogIssue
- type BuildSummary
- type FailedTest
- type ParsedBinlog
- type ParsedEventFields
- type RestoreSummary
- type TestSummary
Constants ¶
const ( RecordBuildStarted = 1 RecordBuildFinished = 2 RecordProjectStarted = 3 RecordProjectFinished = 4 RecordError = 9 RecordWarning = 10 RecordMessage = 11 RecordCriticalBuildMessage = 13 RecordNameValueList = 23 RecordString = 24 )
Record types from MSBuild binlog format
const ( FlagBuildEventContext = 1 << 0 FlagMessage = 1 << 2 FlagTimestamp = 1 << 5 FlagArguments = 1 << 14 FlagImportance = 1 << 15 FlagExtended = 1 << 16 )
Flags for event fields
Variables ¶
This section is empty.
Functions ¶
func FormatBuildSummary ¶
func FormatBuildSummary(summary *BuildSummary, command string) string
FormatBuildSummary creates a compact string representation of a build summary
func FormatTestSummary ¶
func FormatTestSummary(summary *TestSummary, command string) string
FormatTestSummary creates a compact string representation of a test summary
func IsBinlogFile ¶
IsBinlogFile checks if a file is an MSBuild binary log
Types ¶
type BinlogIssue ¶
BinlogIssue represents a build error or warning
type BuildSummary ¶
type BuildSummary struct {
Succeeded bool
ProjectCount int
Errors []BinlogIssue
Warnings []BinlogIssue
Duration time.Duration
DurationText string
}
BuildSummary represents the result of parsing a build binlog
func ParseBuild ¶
func ParseBuild(binlogPath string) (*BuildSummary, error)
ParseBuild parses an MSBuild binary log file and extracts build summary
type FailedTest ¶
FailedTest represents a failed test case
type ParsedBinlog ¶
type ParsedBinlog struct {
// contains filtered or unexported fields
}
ParsedBinlog holds the parsed binlog data
type ParsedEventFields ¶
type ParsedEventFields struct {
// contains filtered or unexported fields
}
ParsedEventFields holds parsed event field data
type RestoreSummary ¶
RestoreSummary represents the result of parsing a restore binlog
func ParseRestore ¶
func ParseRestore(binlogPath string) (*RestoreSummary, error)
ParseRestore parses an MSBuild binary log file and extracts restore summary
type TestSummary ¶
type TestSummary struct {
Passed int
Failed int
Skipped int
Total int
ProjectCount int
FailedTests []FailedTest
Duration time.Duration
DurationText string
}
TestSummary represents the result of parsing a test binlog
func ParseTest ¶
func ParseTest(binlogPath string) (*TestSummary, error)
ParseTest parses an MSBuild binary log file and extracts test summary