mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 08:19:45 +08:00
fix starts_with and ends_wih spelling
Change-Id: I1e475e8187f6e793cd9f9029af93a7d80603b26d
This commit is contained in:
@@ -117,7 +117,7 @@ func (v *responseObject) Validate(validators []Validator, variablesMapping map[s
|
||||
assertMethod := validator.Assert
|
||||
assertFunc, ok := builtin.Assertions[assertMethod]
|
||||
if !ok {
|
||||
return errors.New(fmt.Sprintf("unexpected assertion method: %v", assertMethod))
|
||||
return errors.New(fmt.Sprintf("unexpected assertMethod: %v", assertMethod))
|
||||
}
|
||||
|
||||
// parse expected value
|
||||
@@ -151,10 +151,10 @@ func (v *responseObject) Validate(validators []Validator, variablesMapping map[s
|
||||
if !result {
|
||||
v.t.Fail()
|
||||
return errors.New(fmt.Sprintf(
|
||||
"do assertion failed, assertMethod: %v, expectValue: %v, checkValue: %v",
|
||||
"do assertion failed, assertMethod: %v, checkValue: %v, expectValue: %v",
|
||||
assertMethod,
|
||||
expectValue,
|
||||
checkValue,
|
||||
expectValue,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user