cmptest

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonOptions

func CommonOptions(licenseCmp LicenseComparer, locationCmp LocationComparer) []cmp.Option

func DefaultCommonOptions

func DefaultCommonOptions() []cmp.Option

func DefaultLicenseComparer

func DefaultLicenseComparer(x, y pkg.License) bool

func DefaultLocationComparer

func DefaultLocationComparer(x, y file.Location) bool

func DefaultRelationshipComparer

func DefaultRelationshipComparer(x, y artifact.Relationship) bool

Types

type DiffReporter

type DiffReporter struct {
	// contains filtered or unexported fields
}

DiffReporter is a simple custom reporter that only records differences detected during comparison.

func NewDiffReporter

func NewDiffReporter() DiffReporter

func (*DiffReporter) PopStep

func (r *DiffReporter) PopStep()

func (*DiffReporter) PushStep

func (r *DiffReporter) PushStep(ps cmp.PathStep)

func (*DiffReporter) Report

func (r *DiffReporter) Report(rs cmp.Result)

func (*DiffReporter) String

func (r *DiffReporter) String() string

type LicenseComparer

type LicenseComparer func(x, y pkg.License) bool

type LocationComparer

type LocationComparer func(x, y file.Location) bool

type RelationshipComparer

type RelationshipComparer func(x, y artifact.Relationship) bool

Jump to

Keyboard shortcuts

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