types

package
v0.0.0-...-c8d90df Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PrimaryKeyField is the field that uniquely identifies a key.
	PrimaryKeyField = "name"

	// CorpusField is the field that contains the corpus identifier.
	CorpusField = "source_type"

	// MaximumNameLength is the maximum length in bytes a test name can be.
	MaximumNameLength = 256
)

Variables

Functions

This section is empty.

Types

type Digest

type Digest string

Strings are used a lot, so these type "aliases" can help document which are meant where. See also tiling.TraceID Of note, Digest exclusively means a unique image, identified by the MD5 hash of its pixels.

type DigestSet

type DigestSet map[Digest]bool

func (DigestSet) AddLists

func (s DigestSet) AddLists(lists ...[]Digest) DigestSet

AddLists adds lists of digests to the DigestSet and returns the receiving DigestSet.

func (DigestSet) Keys

func (s DigestSet) Keys() DigestSlice

Keys returns the keys of a DigestSet

type DigestSlice

type DigestSlice []Digest

func (DigestSlice) Len

func (b DigestSlice) Len() int

func (DigestSlice) Less

func (b DigestSlice) Less(i, j int) bool

func (DigestSlice) Swap

func (b DigestSlice) Swap(i, j int)

type IgnoreState

type IgnoreState int

The IgnoreState enum gives a human-readable way to determine if the tile or whatever is dealing with the full amount of information (IncludeIgnoredTraces) or the information with the ignore rules applied (ExcludeIgnoredTraces).

const (
	ExcludeIgnoredTraces IgnoreState = iota
	IncludeIgnoredTraces             // i.e. all digests
)

type TestName

type TestName string

type TestNameSet

type TestNameSet map[TestName]bool

func (TestNameSet) Keys

func (s TestNameSet) Keys() TestNameSlice

Keys returns the keys of a TestNameSet

type TestNameSlice

type TestNameSlice []TestName

func (TestNameSlice) Len

func (b TestNameSlice) Len() int

func (TestNameSlice) Less

func (b TestNameSlice) Less(i, j int) bool

func (TestNameSlice) Swap

func (b TestNameSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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