change: rename variables

This commit is contained in:
debugtalk
2021-09-22 12:03:36 +08:00
parent 50775cd47d
commit 9f345026fa
3 changed files with 81 additions and 81 deletions

View File

@@ -5,21 +5,21 @@ type StepRequestValidation struct {
*TStep
}
func (req *StepRequestValidation) AssertEqual(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
func (step *StepRequestValidation) AssertEqual(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
validator := TValidator{
Check: jmesPath,
Comparator: "equals",
Expect: expected,
Message: msg,
}
req.TStep.Validators = append(req.TStep.Validators, validator)
return req
step.TStep.Validators = append(step.TStep.Validators, validator)
return step
}
func (req *StepRequestValidation) ToStruct() *TStep {
return req.TStep
func (step *StepRequestValidation) ToStruct() *TStep {
return step.TStep
}
func (req *StepRequestValidation) Run() error {
return req.TStep.Run()
func (step *StepRequestValidation) Run() error {
return step.TStep.Run()
}