testingutils

package
v0.1.0-alpha.54-test1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fn

type Fn func(t *testing.T, str string) interface{}

type RunOnce

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

RunOnce is used to make sure that an expensive operation is run only once per key It caches the result the first time it's run

func NewRunOnce

func NewRunOnce(fn Fn) *RunOnce

func (*RunOnce) Get

func (e *RunOnce) Get(t *testing.T, str string) interface{}

Jump to

Keyboard shortcuts

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