regression

package
v0.6.1-4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 24 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 {
	EnableDeDup bool
	// contains filtered or unexported fields
}

func New

func New(tdb models.TestCaseDB, rdb run.DB, log *zap.Logger, EnableDeDup bool, adb telemetry.Service, client http.Client, TestExport bool, store models.MockStore) *Regression

func (*Regression) DeNoise

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

func (*Regression) DeleteTC

func (r *Regression) DeleteTC(ctx context.Context, cid, id string) error

func (*Regression) Get

func (r *Regression) Get(ctx context.Context, cid, appID, id string) (models.TestCase, error)

func (*Regression) GetAll

func (r *Regression) GetAll(ctx context.Context, cid, appID string, offset *int, limit *int) ([]models.TestCase, error)

func (*Regression) GetApps

func (r *Regression) GetApps(ctx context.Context, cid string) ([]string, error)

func (*Regression) Put

func (r *Regression) Put(ctx context.Context, cid string, tcs []models.TestCase) ([]string, error)

func (*Regression) ReadTCS added in v0.5.3

func (r *Regression) ReadTCS(ctx context.Context, testCasePath, mockPath string) ([]models.TestCase, error)

func (*Regression) StartTestRun added in v0.5.6

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

func (*Regression) StopTestRun added in v0.5.6

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

func (*Regression) Test

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

func (*Regression) UpdateTC

func (r *Regression) UpdateTC(ctx context.Context, t []models.TestCase) error

func (*Regression) WriteTC added in v0.5.3

func (r *Regression) WriteTC(ctx context.Context, test []models.Mock, testCasePath, mockPath string) ([]string, error)

type Service

type Service interface {
	Get(ctx context.Context, cid, appID, id string) (models.TestCase, error)
	GetAll(ctx context.Context, cid, appID string, offset *int, limit *int) ([]models.TestCase, error)
	Put(ctx context.Context, cid string, t []models.TestCase) ([]string, error)
	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)
	GetApps(ctx context.Context, cid string) ([]string, error)
	UpdateTC(ctx context.Context, t []models.TestCase) error
	DeleteTC(ctx context.Context, cid, id string) error
	WriteTC(ctx context.Context, t []models.Mock, testCasePath, mockPath string) ([]string, error)
	ReadTCS(ctx context.Context, testCasePath, mockPath string) ([]models.TestCase, error)
	StartTestRun(ctx context.Context, runId, testCasePath, mockPath string)
	StopTestRun(ctx context.Context, runId string)
}

Jump to

Keyboard shortcuts

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