Documentation
¶
Index ¶
- type Service
- type TestCase
- func (r *TestCase) Delete(ctx context.Context, cid, id string) error
- func (r *TestCase) Get(ctx context.Context, cid, appID, id string) (models.TestCase, error)
- func (r *TestCase) GetAll(ctx context.Context, cid, appID string, offset *int, limit *int, ...) ([]models.TestCase, error)
- func (r *TestCase) GetApps(ctx context.Context, cid string) ([]string, error)
- func (r *TestCase) Insert(ctx context.Context, t []models.TestCase, testCasePath, mockPath, cid string, ...) ([]string, error)
- func (r *TestCase) Update(ctx context.Context, t []models.TestCase) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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, testCasePath, mockPath, tcsType string) ([]models.TestCase, error)
GetApps(ctx context.Context, cid string) ([]string, error)
Update(ctx context.Context, t []models.TestCase) error
Delete(ctx context.Context, cid, id string) error
Insert(ctx context.Context, t []models.TestCase, testCasePath, mockPath, cid string, Remove []string, Replace map[string]string) ([]string, error)
}
type TestCase ¶
type TestCase struct {
EnableDeDup bool
// contains filtered or unexported fields
}
func (*TestCase) Get ¶
Get returns testcase with specific company_id, app_id and id.
Note: During testcase-export, generated testcase will not be displayed in ui currently. Because path is not provided by the ui graphQL query.
func (*TestCase) GetAll ¶
func (r *TestCase) GetAll(ctx context.Context, cid, appID string, offset *int, limit *int, testCasePath, mockPath, tcsType string) ([]models.TestCase, error)
GetAll fetches and returns testcases for the application.
Empty tcsType returns testcases of all types(ex: grpc and http).
Click to show internal directories.
Click to hide internal directories.