mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 09:49:33 +08:00
feat: data-driven.
This commit is contained in:
@@ -652,7 +652,8 @@ func TestParseParameters(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, data := range testData {
|
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) {
|
if !assert.Len(t, value, data.expectLength) {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user