testutil

package
v0.0.0-...-d04bc5a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SkipOutJson bool

Functions

This section is empty.

Types

type TestData

type TestData struct {
	// contains filtered or unexported fields
}

TestData stores all the data of a test suite.

func LoadTestSuiteData

func LoadTestSuiteData(dir, suiteName string) (res TestData, err error)

LoadTestSuiteData loads test suite data from file.

func (*TestData) GenerateOutputIfNeeded

func (t *TestData) GenerateOutputIfNeeded() error

GenerateOutputIfNeeded generate the output file.

func (*TestData) GetTestCases

func (t *TestData) GetTestCases(c *check.C, in interface{}, out interface{})

GetTestCases gets the test cases for a test function.

func (*TestData) GetTestCasesWithoutOut

func (t *TestData) GetTestCasesWithoutOut(c *check.C, in interface{})

GetTestCases gets the test cases for a test function.

func (*TestData) OnRecord

func (t *TestData) OnRecord(updateFunc func())

OnRecord execute the function to update result.

Jump to

Keyboard shortcuts

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