Initial commit

This commit is contained in:
yan.y
2024-03-27 23:25:08 +08:00
commit 0884384e91
127 changed files with 9353 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package ping
import (
"testing"
)
func Test_GetPingMsg(t *testing.T) {
ips := []string{"www.weibo.com", "www.qq.com", "www.baidu.com"}
for _, ip := range ips {
t.Run("测试 ping 方法:"+ip, func(t *testing.T) {
ok, msg := GetPingMsg(ip)
if !ok {
t.Errorf("%s ping is fault,get msg %s", ip, msg)
}
})
}
}