(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestRandNumeralOrLetter(t *testing.T) { |
| 68 | t.Parallel() |
| 69 | |
| 70 | pattern := `^[0-9a-zA-Z]+$` |
| 71 | reg := regexp.MustCompile(pattern) |
| 72 | |
| 73 | randStr := RandNumeralOrLetter(10) |
| 74 | |
| 75 | assert := internal.NewAssert(t, "TestRandNumeralOrLetter") |
| 76 | assert.Equal(10, len(randStr)) |
| 77 | assert.Equal(true, reg.MatchString(randStr)) |
| 78 | } |
| 79 | |
| 80 | func TestRandInt(t *testing.T) { |
| 81 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…