Files
forge/pkg/tool/random/str_test.go
2025-11-25 21:42:23 +08:00

27 lines
567 B
Go

package random_test
import (
"testing"
"yizhisec.com/hsv2/forge/pkg/tool/random"
)
func TestRandomString(t *testing.T) {
tests := []struct {
name string // description of this test case
// Named input parameters for target function.
length int
want string
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := random.RandomString(tt.length)
// TODO: update the condition below to compare got with tt.want.
if true {
t.Errorf("RandomString() = %v, want %v", got, tt.want)
}
})
}
}