data

package
v0.0.0-...-af4311f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCase

func ValidateCase(c *types.Case) error

ValidateCase will validate case before case is running

func ValidateContext

func ValidateContext(c *types.Context) error

ValidateContext will validate context before case is running

Types

type Dir

type Dir struct {
	// Context defines the context config
	Context types.Context

	// Name defines the dir name
	Name string

	// CaseNum defines the case num under the dir
	CaseNum int

	// Dirs defines the children dirs
	Dirs map[string]Dir

	// Files defines the children files
	Files map[string]File
}

Dir defines a directory to store test data

func Walk

func Walk(path string) (*Dir, error)

Walk walks a dir and return Dir struct

type ErrorList

type ErrorList []error

ErrorList defines list of error

func (ErrorList) Error

func (el ErrorList) Error() string

Error implements error interface

type File

type File struct {
	// Case defines the case config
	Case types.Case

	// Name defines the file name
	Name string
}

File defines a file to store a test case

Jump to

Keyboard shortcuts

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