Documentation ¶
Index ¶
- func GetDefs(fsys fs.FS, config *entity.Configuration, logger *log.Logger) ([]fs.File, error)
- func ParseData(files []fs.File, cfg *entity.Configuration, logger *log.Logger) ([]*entity.TestData, error)
- func WriteTestLog(result *entity.TestLog, fsys fs.FS, config *entity.Configuration) error
- type Fetcher
- type TestRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseData ¶
func ParseData( files []fs.File, cfg *entity.Configuration, logger *log.Logger, ) ([]*entity.TestData, error)
ParseData read and parse structured test data from current working directory
func WriteTestLog ¶
WriteTestLog writes test result in case of test fails
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher constructs the request
func NewFetcher ¶
NewFetcher creates a new fetcher that can be used to do request calls
type TestRunner ¶
type TestRunner struct {
// contains filtered or unexported fields
}
TestRunner runs and executes test concurrently
func NewTestRunner ¶
func NewTestRunner( data *entity.TestData, config *entity.Configuration, ) *TestRunner
NewTestRunner creates a new test runner that executes test concurrently
func (*TestRunner) RunTest ¶
func (r *TestRunner) RunTest( wg *sync.WaitGroup, ch chan<- *entity.RunnerResult, )
RunTest executes the test and returns the test result
Click to show internal directories.
Click to hide internal directories.