zapdiff

package
v1.6.14 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadHTMLReportTemplate

func LoadHTMLReportTemplate() (*raymond.Template, error)

func WriteMismatchesToCSV

func WriteMismatchesToCSV(w io.Writer, mm []XmlMismatch, l XmlMismatchLevel) (err error)

WriteMismatchesToCSV writes the given mismatches to the writer in CSV format.

func WriteMismatchesToHTML

func WriteMismatchesToHTML(w io.Writer, mm []XmlMismatch, l XmlMismatchLevel, root1, root2 string) error

Types

type XmlMismatch

type XmlMismatch struct {
	Path                   string
	Details                string
	Type                   XmlMismatchType
	EntityUniqueIdentifier string
}

func Pipeline

func Pipeline(ff1, ff2 []string, n1, n2 string) (mm []XmlMismatch)

func (*XmlMismatch) Error

func (m *XmlMismatch) Error() string

func (XmlMismatch) Level

func (m XmlMismatch) Level() XmlMismatchLevel

type XmlMismatchLevel

type XmlMismatchLevel uint8
const (
	MismatchLevel3 XmlMismatchLevel = iota
	MismatchLevel2
	MismatchLevel1
)

func (XmlMismatchLevel) String

func (l XmlMismatchLevel) String() string

type XmlMismatchType

type XmlMismatchType uint8
const (
	XmlMismatchNone XmlMismatchType = iota

	// File level
	XmlMismatchNewFile

	// Generic Tag/Attr Mismatches
	XmlMismatchMissingTag
	XmlMismatchMissingAttr
	XmlMismatchAttrValue

	// Enums
	XmlMismatchMissingEnum
	XmlMismatchMissingEnumItem
	XmlMismatchEnumItemMissingAttr
	XmlMismatchEnumItemAttrValue

	// Structs
	XmlMismatchMissingStruct
	XmlMismatchMissingStructItem
	XmlMismatchStructItemMissingAttr
	XmlMismatchStructItemAttrValue

	// Bitmaps
	XmlMismatchMissingBitmap
	XmlMismatchMissingBitmapField
	XmlMismatchBitmapMissingAttr
	XmlMismatchBitmapAttrValue
	XmlMismatchBitmapFieldMissingAttr
	XmlMismatchBitmapFieldAttrValue

	// Clusters (Top Level)
	XmlMismatchMissingCluster
	XmlMismatchClusterMissingAttr
	XmlMismatchClusterAttrValue

	// Clusters
	XmlMismatchMissingClusterCommand
	XmlMismatchClusterCommandMissingAttr
	XmlMismatchClusterCommandAttrValue
	XmlMismatchMissingClusterAttribute
	XmlMismatchClusterAttributeMissingAttr
	XmlMismatchClusterAttributeAttrValue
	XmlMismatchMissingClusterEvent
	XmlMismatchClusterEventMissingAttr
	XmlMismatchClusterEventAttrValue
	XmlMismatchMissingClusterFeature

	XmlMismatchClusterDetails
)

func (XmlMismatchType) Level

func (XmlMismatchType) String

func (t XmlMismatchType) String() string

Jump to

Keyboard shortcuts

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