regression

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 16 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) *Regression

func (*Regression) DeNoise

func (r *Regression) DeNoise(ctx context.Context, cid, id, app, body string, h http.Header) 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) Test

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

func (*Regression) UpdateTC

func (r *Regression) UpdateTC(ctx context.Context, t []models.TestCase) 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) error
	Test(ctx context.Context, cid, app, runID, id 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
}

Jump to

Keyboard shortcuts

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