mergevalidation

package
v0.182.5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DeadcodeCommand = "go run ./cmd/wb deadcode"

Variables

This section is empty.

Functions

func ImportedMainDeadcodeEntry

func ImportedMainDeadcodeEntry(report quality.VerificationReport) (quality.VerificationEntry, bool)

func RegressionWithImportedMain

func RegressionWithImportedMain(baseline, candidate quality.VerificationReport, imported *ImportedMainDeadcode) error

func ValidImportedMainDeadcodeReport

func ValidImportedMainDeadcodeReport(report quality.VerificationReport) bool

Types

type ImportedMainDeadcode

type ImportedMainDeadcode struct {
	CandidateSHA string `json:"candidate_sha"`
	TargetSHA    string `json:"target_sha"`
	MergeSHA     string `json:"merge_sha"`
	ImportedSHA  string `json:"imported_sha"`
	// OriginMainSHA is the authoritative main head at initial validation. It
	// may be later than ImportedSHA; resumes require it to remain an ancestor
	// of the freshly fetched authoritative main head.
	OriginMainSHA string                     `json:"origin_main_sha"`
	Validation    quality.VerificationReport `json:"validation"`
}

ImportedMainDeadcode binds the one imported main parent to the candidate and the exact target whose validation it may supplement.

func WithImportedMainAttestation

func WithImportedMainAttestation(baseline, candidate quality.VerificationReport, attest func() (*ImportedMainDeadcode, error)) (*ImportedMainDeadcode, error)

Jump to

Keyboard shortcuts

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