tags

package
v0.0.0-...-a649549 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Alphabet = "abcdefghijklmnopqrstuvwxyz_1234567890"

Alphabet lists the only characters allowed in LegalName

Variables

This section is empty.

Functions

func IsFullCaps

func IsFullCaps(name string) bool

IsFullCaps returns whether a name would represent a Pythonic constant

func LegalName

func LegalName(name string) error

LegalName fails when string isn't the right format.

Types

type Filter

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

Filter is used to activate or deactivate a monkey.check during Fuzz.

func NewFilter

func NewFilter(includeSetButZero, excludeSetButZero bool, i, o []string) (r *Filter, err error)

NewFilter attempts to build a tags filter from CLI-ish arguments.

func (*Filter) Excludes

func (f *Filter) Excludes(checking Tags) bool

Excludes applies the filter to a monkey.check's tags.

type Tags

type Tags = map[string]struct{}

Tags represent a set of legal (per LegalName) tags.

type UniqueStrings

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

UniqueStrings implements starlark.Unpacker

func (*UniqueStrings) GoStrings

func (us *UniqueStrings) GoStrings() []string

GoStrings returns the list of unique strings as a Go slice

func (*UniqueStrings) GoStringsMap

func (us *UniqueStrings) GoStringsMap() (m Tags)

GoStringsMap returns the unique strings as a Go map

func (*UniqueStrings) Unpack

func (us *UniqueStrings) Unpack(v starlark.Value) (err error)

Unpack unmarshals UniqueStrings from a starlark.Value

type UniqueStringsNonEmpty

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

UniqueStringsNonEmpty implements starlark.Unpacker

func (*UniqueStringsNonEmpty) GoStrings

func (us *UniqueStringsNonEmpty) GoStrings() []string

GoStrings returns the list of unique strings as a Go slice

func (*UniqueStringsNonEmpty) Unpack

func (us *UniqueStringsNonEmpty) Unpack(v starlark.Value) (err error)

Unpack unmarshals UniqueStringsNonEmpty from a starlark.Value

Jump to

Keyboard shortcuts

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