MCPcopy Create free account
hub / github.com/labstack/gommon / Test

Function Test

random/random_test.go:11–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func Test(t *testing.T) {
12 assert.Len(t, String(32), 32)
13 r := New()
14 assert.Regexp(t, regexp.MustCompile("[0-9]+$"), r.String(8, Numeric))
15}
16
17func TestRandomString(t *testing.T) {
18 var testCases = []struct {

Callers

nothing calls this directly

Calls 3

StringFunction · 0.85
StringMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…