Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
func
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
17
func
TestRandomString(t *testing.T) {
18
var
testCases = []
struct
{
Callers
nothing calls this directly
Calls
3
String
Function · 0.85
String
Method · 0.80
New
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…