atsf4g_go_robot_case

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 AutoCompleteCaseName(string) []string

func ClearProgressBar

func ClearProgressBar()

func CmdRunCase

func CmdRunCase(task base.TaskActionImpl, cmd []string) string

func CmdRunCaseFile added in v1.0.1

func CmdRunCaseFile(_ base.TaskActionImpl, cmd []string, caseIndex int32, beginTime time.Time) string

func InitProgressBar

func InitProgressBar(totalCount int64)

func RefreshProgressBar

func RefreshProgressBar()

func RegisterCase

func RegisterCase(name string, fn CaseFunc, timeout time.Duration)

func RunCaseFile

func RunCaseFile(caseFile string, repeatedTime int32) error

func RunCaseWait

func RunCaseWait(pendingCase []chan string) error

Types

type CaseAction

type CaseAction struct {
	// contains filtered or unexported fields
}

type CaseFunc

type CaseFunc func(*TaskActionCase, string, []string) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL