(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestRandNumeral(t *testing.T) { |
| 55 | t.Parallel() |
| 56 | |
| 57 | pattern := `^[0-9]+$` |
| 58 | reg := regexp.MustCompile(pattern) |
| 59 | |
| 60 | randStr := RandNumeral(12) |
| 61 | |
| 62 | assert := internal.NewAssert(t, "TestRandNumeral") |
| 63 | assert.Equal(12, len(randStr)) |
| 64 | assert.Equal(true, reg.MatchString(randStr)) |
| 65 | } |
| 66 | |
| 67 | func TestRandNumeralOrLetter(t *testing.T) { |
| 68 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…