Documentation ¶
Index ¶
- type Regression
- func (r *Regression) DeNoise(ctx context.Context, cid, id, app, body string, h http.Header) error
- func (r *Regression) DeleteTC(ctx context.Context, cid, id string) error
- func (r *Regression) Get(ctx context.Context, cid, appID, id string) (models.TestCase, error)
- func (r *Regression) GetAll(ctx context.Context, cid, appID string, offset *int, limit *int) ([]models.TestCase, error)
- func (r *Regression) GetApps(ctx context.Context, cid string) ([]string, error)
- func (r *Regression) Put(ctx context.Context, cid string, tcs []models.TestCase) ([]string, error)
- func (r *Regression) Test(ctx context.Context, cid, app, runID, id string, resp models.HttpResp) (bool, error)
- func (r *Regression) UpdateTC(ctx context.Context, t []models.TestCase) error
- type Service
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) DeleteTC ¶
func (r *Regression) DeleteTC(ctx context.Context, cid, id 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) 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 }
Click to show internal directories.
Click to hide internal directories.