testscenario

package
v0.0.0-...-a9a38b2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfTestIsInList

func CheckIfTestIsInList(testName string, testList []string) bool

func DisplayTestsuite

func DisplayTestsuite(ts []TestScenario)

func DisplayTestsuiteResults

func DisplayTestsuiteResults(ts []TestScenario)

func ListOfTestFromFile

func ListOfTestFromFile(filename string) []string

func RunTestsuite

func RunTestsuite(ts []TestScenario) error

Types

type StatusType

type StatusType uint8
const (
	SCENARIO_NOT_RUN   StatusType = 0
	SCENARIO_PASSED    StatusType = 1
	SCENARIO_FAILED    StatusType = 2
	SCENARIO_UNDEFINED StatusType = 3
)

type TestScenario

type TestScenario struct {
	Id          string
	Description string
	Status      StatusType
	Action      func(test *TestScenario) error
}

func CreateTestSuite

func CreateTestSuite(c *cli.Context) []TestScenario

Jump to

Keyboard shortcuts

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