regression

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Regression

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

func New

func New(tdb models.TestCaseDB, rdb run.DB, log *zap.Logger, TestExport bool, mFS models.MockFS, tFS models.TestReportFS) *Regression

func (*Regression) DeNoise

func (r *Regression) DeNoise(ctx context.Context, cid, id, app, body string, h http.Header, path string) error

func (*Regression) StartTestRun added in v0.5.6

func (r *Regression) StartTestRun(ctx context.Context, runId, testCasePath, mockPath, testReportPath string) error

func (*Regression) StopTestRun added in v0.5.6

func (r *Regression) StopTestRun(ctx context.Context, runId, testReportPath string) error

func (*Regression) Test

func (r *Regression) Test(ctx context.Context, cid, app, runID, id, testCasePath, mockPath string, resp models.HttpResp) (bool, error)

type Service

type Service interface {
	DeNoise(ctx context.Context, cid, id, app, body string, h http.Header, path string) error
	Test(ctx context.Context, cid, app, runID, id, testCasePath, mockPath string, resp models.HttpResp) (bool, error)
	StartTestRun(ctx context.Context, runId, testCasePath, mockPath, testReportPath string) error
	StopTestRun(ctx context.Context, runId, testReportPath string) error
}

Jump to

Keyboard shortcuts

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