MCPcopy Create free account
hub / github.com/astercloud/aster / GetStep

Method GetStep

pkg/executionplan/types.go:151–156  ·  view source on GitHub ↗

GetStep 获取指定步骤

(index int)

Source from the content-addressed store, hash-verified

149
150// GetStep 获取指定步骤
151func (p *ExecutionPlan) GetStep(index int) *Step {
152 if index < 0 || index >= len(p.Steps) {
153 return nil
154 }
155 return &p.Steps[index]
156}
157
158// GetCurrentStep 获取当前步骤
159func (p *ExecutionPlan) GetCurrentStep() *Step {

Callers 9

TestGetStepFunction · 0.95
TestMarkStepStartedFunction · 0.95
TestMarkStepCompletedFunction · 0.95
TestMarkStepFailedFunction · 0.95
parseResponseMethod · 0.95
GetCurrentStepMethod · 0.95
MarkStepStartedMethod · 0.95
MarkStepCompletedMethod · 0.95
MarkStepFailedMethod · 0.95

Calls

no outgoing calls

Tested by 4

TestGetStepFunction · 0.76
TestMarkStepStartedFunction · 0.76
TestMarkStepCompletedFunction · 0.76
TestMarkStepFailedFunction · 0.76