Ai
1 Star 0 Fork 0

GarlicBoris/gozero-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rand_test.go 190 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanwc 提交于 2023-02-26 21:33 +08:00 . feat:实用工具
package utils
import "testing"
func TestRandString(t *testing.T) {
s := RandString(10)
t.Error(len(s) == 10)
}
func TestRandInt(t *testing.T) {
s := RandInt(5)
t.Error(len(s) == 5)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yanwc/gozero-utils.git
git@gitee.com:yanwc/gozero-utils.git
yanwc
gozero-utils
gozero-utils
v1.3.78

搜索帮助