change: use data driven test

This commit is contained in:
debugtalk
2021-09-29 12:49:54 +08:00
parent d04642eace
commit d37b801477
2 changed files with 76 additions and 109 deletions

View File

@@ -70,7 +70,7 @@ func parseString(raw string, variablesMapping map[string]interface{}) interface{
remainedString = remainedString[startPosition:]
// search variable like ${var} or $var
varMatched := regexCompileVariable.FindStringSubmatch(raw[matchStartPosition:])
varMatched := regexCompileVariable.FindStringSubmatch(remainedString)
if len(varMatched) == 3 {
var varName string
if varMatched[1] != "" {