utils

package
v0.0.0-...-6934db7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkf

func Checkf(t *testing.T, comparison assert.BoolOrComparison, testCase interface{})

func GenerateRandArray

func GenerateRandArray(n int) []float64

func Max

func Max(x, y int) int

func MeasureMemoryUsage

func MeasureMemoryUsage(codeToMeasure func()) uint64

func Min

func Min(x, y int) int

func SameString2DSlice

func SameString2DSlice(x, y [][]string) bool

func SameStringSlice

func SameStringSlice(x, y []string) bool

Types

type Pair

type Pair[L interface{}, R interface{}] struct {
	Left  L
	Right R
}

Jump to

Keyboard shortcuts

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