testx

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package testx contains utilities for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Benchmark

func Benchmark(
	b *testing.B,
	setup func(context.Context) error,
	before func(context.Context) error,
	fn func(context.Context) error,
	after func(context.Context) error,
)

Benchmark benchmarks fn.

func SequentialName

func SequentialName(prefix string) string

SequentialName returns a unique name with the given prefix.

func UniqueName

func UniqueName(prefix string) string

UniqueName returns a unique name with the given prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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