MCPcopy Create free account
hub / github.com/ddev/ddev / TestRandomString

Function TestRandomString

pkg/nodeps/utils_test.go:14–19  ·  view source on GitHub ↗

TestRandomString tests if RandomString returns the correct character length

(t *testing.T)

Source from the content-addressed store, hash-verified

12
13// TestRandomString tests if RandomString returns the correct character length
14func TestRandomString(t *testing.T) {
15 randomString := nodeps.RandomString(10)
16
17 // is RandomString as long as required
18 require.Equal(t, 10, len(randomString))
19}
20
21// TestPathWithSlashesToArray tests PathWithSlashesToArray
22func TestPathWithSlashesToArray(t *testing.T) {

Callers

nothing calls this directly

Calls 1

RandomStringFunction · 0.92

Tested by

no test coverage detected