MCPcopy
hub / github.com/usefathom/fathom / TestRandomString

Function TestRandomString

pkg/config/config_test.go:69–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

67}
68
69func TestRandomString(t *testing.T) {
70 r1 := randomString(10)
71 r2 := randomString(10)
72
73 if r1 == r2 {
74 t.Errorf("expected two different strings, got %#v", r1)
75 }
76
77 if l := len(r1); l != 10 {
78 t.Errorf("expected string of length %d, got string of length %d", 10, l)
79 }
80}

Callers

nothing calls this directly

Calls 1

randomStringFunction · 0.70

Tested by

no test coverage detected