binlog

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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

func IsBinlogFile(path string) bool

IsBinlogFile checks if a file is an MSBuild binary log

Types

type BinlogIssue

type BinlogIssue struct {
	Code    string
	File    string
	Line    uint32
	Column  uint32
	Message string
}

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

type FailedTest struct {
	Name    string
	Details []string
}

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

type RestoreSummary struct {
	RestoredProjects int
	Warnings         int
	Errors           int
	DurationText     string
}

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

Jump to

Keyboard shortcuts

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