test

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptSortMaterial = cmpopts.SortSlices(func(i, j slsa.ProvenanceMaterial) bool {
	if i.URI == j.URI {
		i_DigestValue := ""
		for _, v := range i.Digest {
			i_DigestValue = v
		}
		j_DigestValue := ""
		for _, v := range j.Digest {
			j_DigestValue = v
		}
		return i_DigestValue < j_DigestValue
	}
	return i.URI < j.URI
})

OptSortMaterial provides compare options to sort a slice of materials by URI in the provenance

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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