pth

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

Patty's Testing Harness

A dirt simple testing harness I wrote for making running tests easier with my go projects.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run[T, U any](tests []Test[T, U], f func(in T) U, t *testing.T)

func SanityTest added in v0.1.2

func SanityTest(t *testing.T)

Types

type Test

type Test[T, U any] struct {
	Name      string
	Input     T
	Expecting U
	Success   bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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