修复部分测试用例

This commit is contained in:
GoEdgeLab
2023-06-07 21:49:42 +08:00
parent c782d92332
commit 58b7bbfbb5
14 changed files with 254 additions and 107 deletions

View File

@@ -0,0 +1,15 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
package testutils
import "os"
// IsSingleTesting 判断当前测试环境是否为单个函数测试
func IsSingleTesting() bool {
for _, arg := range os.Args {
if arg == "-test.run" {
return true
}
}
return false
}