new
This commit is contained in:
@@ -6,11 +6,11 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
test_file = `
|
||||
testFile = `
|
||||
`
|
||||
)
|
||||
|
||||
//判断是否在测试环境下使用
|
||||
//IsRunTesting 判断是否在测试环境下使用
|
||||
func IsRunTesting() bool {
|
||||
if len(os.Args) > 1 {
|
||||
return strings.HasPrefix(os.Args[1], "-test")
|
||||
|
||||
Reference in New Issue
Block a user