Documentation ¶
Index ¶
- type Regression
- func (r *Regression) DeNoise(ctx context.Context, cid, id, app, body string, h http.Header, path string) 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) ReadTCS(ctx context.Context, testCasePath, mockPath string) ([]models.TestCase, error)
- func (r *Regression) StartTestRun(ctx context.Context, runId, testCasePath, mockPath string)
- func (r *Regression) StopTestRun(ctx context.Context, runId string)
- func (r *Regression) Test(ctx context.Context, cid, app, runID, id, testCasePath, mockPath string, ...) (bool, error)
- func (r *Regression) UpdateTC(ctx context.Context, t []models.TestCase) error
- func (r *Regression) WriteTC(ctx context.Context, test []models.Mock, testCasePath, mockPath string) ([]string, error)
- type Service
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 (*Regression) DeleteTC ¶
func (r *Regression) DeleteTC(ctx context.Context, cid, id string) 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)
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) }
Click to show internal directories.
Click to hide internal directories.