2 Star 4 Fork 4

aosfather/myway-mock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
service_test.go 200 Bytes
一键复制 编辑 原始数据 按行查看 历史
aosfather 提交于 2020-05-03 01:35 +08:00 . 新增支持模拟服务耗时的特性
package main
import (
"math/rand"
"testing"
"time"
)
func TestDelay(t *testing.T) {
r := rand.New(rand.NewSource(time.Now().UnixNano()))
t.Log(r.Intn(3))
t.Log(r.Intn(3))
t.Log(r.Intn(3))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/aosfather/myway-mock.git
git@gitee.com:aosfather/myway-mock.git
aosfather
myway-mock
myway-mock
master

搜索帮助