verify

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrincipalsFileName = "principals"
	ResourcesFileName  = "resources"
)

Variables

View Source
var (
	ErrPrincipalNotFound = errors.New("principal not found")
	ErrResourceNotFound  = errors.New("resource not found")
)
View Source
var ErrTestFixtureNotFound = errors.New("test fixture not found")

Functions

This section is empty.

Types

type Config

type Config struct {
	TestsDir string
	Run      string
}

type Result

type Result struct {
	Failed  bool          `json:"-"`
	Results []SuiteResult `json:"results"`
}

func Verify

func Verify(ctx context.Context, eng *engine.Engine, conf Config) (*Result, error)

Verify runs the test suites from the provided directory.

type SuiteResult

type SuiteResult struct {
	File    string       `json:"file"`
	Suite   string       `json:"suite"`
	Skipped bool         `json:"skipped,omitempty"`
	Tests   []TestResult `json:"tests"`
}

type TestName added in v0.7.0

type TestName struct {
	TableTestName string `json:"name"`
	PrincipalKey  string `json:"principal"`
}

func (TestName) String added in v0.7.0

func (r TestName) String() string

type TestResult

type TestResult struct {
	Name    TestName `json:"case"`
	Skipped bool     `json:"skipped,omitempty"`
	Failed  bool     `json:"failed"`
	Error   string   `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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