testrunner

package
v0.0.0-...-520529b Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToMapByTestName

func ConvertToMapByTestName(tests []rootLevelTest) map[string]rootLevelTest

func Execute

func Execute(input_dir string) []byte

func ExtractTestCodeAndTaskID

func ExtractTestCodeAndTaskID(rootLevelTests map[string]rootLevelTest, testName string) (string, uint64)

return the associated test function code from the given test file

func FindAllRootLevelTests

func FindAllRootLevelTests(fileName string) []rootLevelTest

FindAllRootLevelTests parses the test file and extracts the name, test code and task id for each top level test (parent test) in the file.

func FindTestFile

func FindTestFile(codePath string) string

Types

type ExerciseConfig

type ExerciseConfig struct {
	TestingFlags   []string `json:"testingFlags"`
	TaskIDsEnabled bool     `json:"taskIdsEnabled"`
}

Jump to

Keyboard shortcuts

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