internal

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidIndex = -1
	Zero         = 0
)

Variables

This section is empty.

Functions

func AreMapsSame added in v0.0.2

func AreMapsSame[K comparable, V any](a, b map[K]V, vc comparator.Comparator[V]) bool

func AssertErrorEquals

func AssertErrorEquals(t *testing.T, expected, actual error)

func AssertSliceEquals added in v0.0.2

func AssertSliceEquals[T comparable](t *testing.T, a, b []T)

TODO: REFACTOR

func ZeroValueOf

func ZeroValueOf[T any]() T

Types

type SliceGenerator

type SliceGenerator struct {
	Min           int64
	Max           int64
	AbsoluteValue int64
	Size          int64
	Reverse       bool
	Random        bool
	Absolute      bool
}

func (SliceGenerator) Generate

func (sg SliceGenerator) Generate() []int64

Jump to

Keyboard shortcuts

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