MCPcopy
hub / github.com/duke-git/lancet / TestRandLower

Function TestRandLower

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

Source from the content-addressed store, hash-verified

39}
40
41func TestRandLower(t *testing.T) {
42 t.Parallel()
43
44 pattern := `^[a-z]+$`
45 reg := regexp.MustCompile(pattern)
46
47 randStr := RandLower(6)
48
49 assert := internal.NewAssert(t, "TestRandLower")
50 assert.Equal(6, len(randStr))
51 assert.Equal(true, reg.MatchString(randStr))
52}
53
54func TestRandNumeral(t *testing.T) {
55 t.Parallel()

Callers

nothing calls this directly

Calls 3

EqualMethod · 0.95
NewAssertFunction · 0.92
RandLowerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…