test

package
v0.0.0-...-5a663d6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSubTests

func RunSubTests[T Named](t *testing.T, tests []T, testFunc func(*testing.T, T))

Types

type ExpansionTest

type ExpansionTest struct {
	Pattern  string
	Expected []string
}

func (ExpansionTest) Name

func (e ExpansionTest) Name() string

type Named

type Named interface {
	Name() string
}

type SequanceTest

type SequanceTest[T comparable] struct {
	Start    T
	End      T
	Incr     T
	Expected []T
}

func (SequanceTest[T]) Name

func (s SequanceTest[T]) Name() string

Jump to

Keyboard shortcuts

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