Documentation
¶
Overview ¶
Package tools provides utility functions for the service package.
Index ¶
- Variables
- func RenderIfTemplatized(val interface{}) (bool, interface{}, error)
- type Service
- type TestDB
- type TestSetConfig
- type Tools
- func (t *Tools) CreateConfig(_ context.Context, filePath string, configData string) error
- func (t *Tools) Export(ctx context.Context) error
- func (t *Tools) IgnoreTestSet(_ context.Context, _ string) error
- func (t *Tools) IgnoreTests(_ context.Context, _ string, _ []string) error
- func (t *Tools) Import(ctx context.Context, path, basePath string) error
- func (t *Tools) Login(ctx context.Context) bool
- func (t *Tools) ProcessTestCases(ctx context.Context, tcs []*models.TestCase, testSetID string) error
- func (t *Tools) SendTelemetry(event string, output ...*sync.Map)
- func (t *Tools) Templatize(ctx context.Context) error
- func (t *Tools) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGitHubAPIUnresponsive = errors.New("GitHub API is unresponsive")
Functions ¶
func RenderIfTemplatized ¶ added in v2.4.2
Types ¶
type Service ¶
type Service interface {
Update(ctx context.Context) error
CreateConfig(ctx context.Context, filePath string, config string) error
SendTelemetry(event string, output ...*sync.Map)
Login(ctx context.Context) bool
Export(ctx context.Context) error
Import(ctx context.Context, path, basePath string) error
Templatize(ctx context.Context) error
}
type TestDB ¶ added in v2.4.2
type TestDB interface {
GetAllTestSetIDs(ctx context.Context) ([]string, error)
GetTestCases(ctx context.Context, testSetID string) ([]*models.TestCase, error)
UpdateTestCase(ctx context.Context, testCase *models.TestCase, testSetID string, enableLog bool) error
DeleteTests(ctx context.Context, testSetID string, testCaseIDs []string) error
DeleteTestSet(ctx context.Context, testSetID string) error
}
type TestSetConfig ¶ added in v2.4.2
type Tools ¶
type Tools struct {
// contains filtered or unexported fields
}
func (*Tools) CreateConfig ¶
func (*Tools) IgnoreTests ¶
func (*Tools) ProcessTestCases ¶ added in v2.4.2
Click to show internal directories.
Click to hide internal directories.