testrunner

package module
v0.0.0-...-7e14108 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTests

func RunTests[T, U any](tests []TestType[T, U], parser func(in U) (T, U, error), t *testing.T)

Types

type TestType

type TestType[T, U any] struct {
	Name             string
	Expected         T
	Input, Remainder U
	Successful       bool
}

Jump to

Keyboard shortcuts

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