mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
feat: data-driven.
This commit is contained in:
@@ -652,7 +652,8 @@ func TestParseParameters(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, data := range testData {
|
||||
value, _ := parseParameters(data.rawVars, map[string]interface{}{})
|
||||
params, _ := parseParameters(data.rawVars, map[string]interface{}{})
|
||||
value := genCartesianProduct(params)
|
||||
if !assert.Len(t, value, data.expectLength) {
|
||||
t.Fail()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user