test

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	B = literal.B
	P = core.P
	T = literal.T
	W = core.W
)

Functions

This section is empty.

Types

type AssignGrouping

type AssignGrouping struct {
	In  string
	Out GroupSettings
}

type CollateGroups

type CollateGroups struct {
	// args
	Settings  GroupSettings  // constant input
	Collation GroupCollation // accumulator; FIX: this should be []GroupedObjects -- no need for the wrapping structure.

	// locals
	Found bool
	Group GroupedObjects
}

pattern:

type GroupCollation

type GroupCollation struct {
	Groups []GroupedObjects
}

the pattern collate groups builds a group collation from a list of group settings

type GroupOptions

type GroupOptions int

GroupOptions defines how objects in groups should display.

const (
	// indicates we dont want the individual objects in the group
	// ex. the scrabble tiles, the usual utensils, several things.
	WithoutObjects GroupOptions = iota
	// indicates individual objects should have articles.
	// ex. the X and the W tiles from a Scrabble set.
	ObjectsWithArticles
	// indicates the individual objects shouldnt use articles
	// ex. tiles X and W from a Scrabble set.
	ObjectsWithoutArticles
)

func (GroupOptions) String

func (i GroupOptions) String() string

type GroupSettings

type GroupSettings struct {
	// the name of the object this record describes
	// ex. tile X, or tile W ( from a scrabble set )
	Name string
	// objects with the same label are considered to be in the same group.
	// ex. "scrabble tiles"
	Label string
	// whether and how to print objects.
	GroupOptions
}

the pattern assign grouping builds a list of group settings from a list of objects

type GroupedObjects

type GroupedObjects struct {
	Settings GroupSettings // the settings of the first object in the group
	Objects  []string      // the list of objects with the same settings
}

type Locals

type Locals struct {
	Objects   []string
	Settings  []GroupSettings
	Collation GroupCollation
}

local variables for grouping tests

type MatchGroups

type MatchGroups struct {
	A       GroupSettings
	B       GroupSettings
	Matches bool
}

type Things

type Things struct {
}

a simple noun

Directories

Path Synopsis
pacakge eph provides helpers for testing
pacakge eph provides helpers for testing

Jump to

Keyboard shortcuts

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