Documentation
¶
Index ¶
- Variables
- func AddProgressBarCount()
- func AutoCompleteCaseName(string) []string
- func ClearProgressBar()
- func CmdRunCase(_ base.TaskActionImpl, cmd []string) string
- func InitProgressBar(totalCount int64)
- func RefreshProgressBar()
- func RegisterCase(name string, fn CaseFunc, timeout time.Duration)
- func RunCaseFile(caseFile string) error
- func RunCaseWait(pendingCase []chan string) error
- type CaseAction
- type CaseFunc
- type TaskActionCase
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProgressBarTotalCount int64 ProgressBarCurrentCount atomic.Int64 FailedCount atomic.Int64 TotalFailedCount atomic.Int64 RefreshFunc *time.Timer )
View Source
var CaseActionActor sync.Map
Functions ¶
func AddProgressBarCount ¶
func AddProgressBarCount()
func AutoCompleteCaseName ¶
func ClearProgressBar ¶
func ClearProgressBar()
func CmdRunCase ¶
func CmdRunCase(_ base.TaskActionImpl, cmd []string) string
func InitProgressBar ¶
func InitProgressBar(totalCount int64)
func RefreshProgressBar ¶
func RefreshProgressBar()
func RunCaseFile ¶
func RunCaseWait ¶
Types ¶
type CaseAction ¶
type CaseAction struct {
// contains filtered or unexported fields
}
type TaskActionCase ¶
type TaskActionCase struct {
base.TaskActionBase
Fn CaseFunc
OpenId string
Args []string
// contains filtered or unexported fields
}
func (*TaskActionCase) AfterYield ¶
func (t *TaskActionCase) AfterYield()
func (*TaskActionCase) BeforeYield ¶
func (t *TaskActionCase) BeforeYield()
func (*TaskActionCase) HookRun ¶
func (t *TaskActionCase) HookRun() error
func (*TaskActionCase) Log ¶
func (t *TaskActionCase) Log(format string, a ...any)
Click to show internal directories.
Click to hide internal directories.