evaluation

package
v0.0.0-...-affd3f3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Identical mode = iota
	LeftInclusive
)

Variables

This section is empty.

Functions

func ComparePackageTypes

func ComparePackageTypes(m mode, packages ...*PackageDescription) (bool, error)

func FindMatchingTypePairs

func FindMatchingTypePairs(mapA, mapB models.MapCollection[string, *models.Struct]) models.ListCollection[*StructPair]

Types

type Discrepancy

type Discrepancy struct {
	TypeName   string
	Reason     string
	PackageA   string
	PackageB   string
	FieldDiffs []FieldDifference
}

type FieldDifference

type FieldDifference struct {
	FieldName     string
	PackageAValue string
	PackageBValue string
	Property      string
}

type PackageDescription

type PackageDescription struct {
	Name string
	Path string
}

type StructPair

type StructPair struct {
	A *models.Struct
	B *models.Struct
}

Jump to

Keyboard shortcuts

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