reader

package
v0.0.0-...-ab21222 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource map[string]any // config of one resource in a test

type Resources

type Resources map[string]Resource // map of resource names to resource configs

type Step

type Step map[string]Resources // map of resource types to resources of that type

type Test

type Test struct {
	Name  string
	Steps []Step
}

func ReadAllTests

func ReadAllTests(servicesDir string) ([]*Test, map[string]error)

Return a slice of tests as well as a map of file or test names to errors encountered.

func ReadTestFiles

func ReadTestFiles(filenames []string) ([]*Test, map[string]error)

Read all the test files in a service directory together to capture cross-file function usage.

func (*Test) String

func (t *Test) String() string

Jump to

Keyboard shortcuts

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