mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 16:29:37 +08:00
feat: check target achieving for each feed type
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
1,
|
||||
1
|
||||
],
|
||||
"target": 2,
|
||||
"text": "^广告$"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ func TestAndroidVideoCrawlerTest(t *testing.T) {
|
||||
"feed": map[string]interface{}{
|
||||
"target_count": 5,
|
||||
"target_labels": []map[string]interface{}{
|
||||
{"text": "^广告$", "scope": []float64{0, 0.5, 1, 1}, "regex": true},
|
||||
{"text": "^广告$", "scope": []float64{0, 0.5, 1, 1}, "regex": true, "target": 2},
|
||||
{"text": "^图文$", "scope": []float64{0, 0.5, 1, 1}, "regex": true},
|
||||
{"text": `^特效\|`, "scope": []float64{0, 0.5, 1, 1}, "regex": true},
|
||||
{"text": `^模板\|`, "scope": []float64{0, 0.5, 1, 1}, "regex": true},
|
||||
|
||||
Reference in New Issue
Block a user