Documentation
¶
Index ¶
- func RunGoTest(configPath string) (int, error)
- type PolicyTestCase
- type T
- func (t *T) ImportPath() string
- func (t *T) MatchString(pat, str string) (bool, error)
- func (t *T) SetPanicOnExit0(bool)
- func (t *T) StartCPUProfile(io.Writer) error
- func (t *T) StartTestLog(io.Writer)
- func (t *T) StopCPUProfile()
- func (t *T) StopTestLog() error
- func (t *T) WriteHeapProfile(io.Writer) error
- func (t *T) WriteProfileTo(string, io.Writer, int) error
- type TestCaseVariable
- type TestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PolicyTestCase ¶
type PolicyTestCase struct { ErrorExpected bool `yaml:"errorExpected"` Variables []TestCaseVariable `yaml:"variables"` }
type T ¶
type T struct{}
func (*T) ImportPath ¶
func (*T) SetPanicOnExit0 ¶
func (*T) StartTestLog ¶
func (*T) StopCPUProfile ¶
func (t *T) StopCPUProfile()
func (*T) StopTestLog ¶
type TestCaseVariable ¶
type TestCaseVariable struct { Key string `yaml:"key"` Value interface{} `yaml:"value"` }
type TestConfig ¶
type TestConfig struct { Name string `yaml:"name"` Cases []PolicyTestCase `yaml:"cases"` TerraformDir string `yaml:"terraformDir"` ErrorMessage string `yaml:"errorMessage"` ErrorCode string `yaml:"errorCode"` }
Click to show internal directories.
Click to hide internal directories.