autotest

package
v0.0.0-...-e8a946a Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConcurrentTests

func RunConcurrentTests(t *testing.T, testcases []TestCases) []error

RunTests function execute the tests as per testcases defined in TestMapping RunTests also generates the error message if testcase is not valid

func RunTests

func RunTests(t *testing.T, testcases []TestCases) []error

RunTests function execute the tests as per testcases defined

func StreamTests

func StreamTests(done <-chan struct{}, testcases []TestCases) <-chan TestCases

Stream testcases to input channel

Types

type TestCases

type TestCases struct {
	Name string
	Test func() error
}

Testcase type Accept test name and test func

Jump to

Keyboard shortcuts

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