MCPcopy Index your code
hub / github.com/coder/coder / TestString

Function TestString

cryptorand/strings_test.go:16–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestString(t *testing.T) {
17 t.Parallel()
18
19 for i := 0; i < 20; i++ {
20 rs, err := cryptorand.String(10)
21 require.NoError(t, err, "unexpected error from String")
22 t.Logf("value: %v <- random?", rs)
23 }
24}
25
26func TestStringCharset(t *testing.T) {
27 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringFunction · 0.92
LogfMethod · 0.65

Tested by

no test coverage detected