(t *testing.T)
| 160 | } |
| 161 | |
| 162 | func TestRandSymbolChar(t *testing.T) { |
| 163 | t.Parallel() |
| 164 | |
| 165 | pattern := `^[\W|_]+$` |
| 166 | reg := regexp.MustCompile(pattern) |
| 167 | |
| 168 | symbolChars := RandSymbolChar(10) |
| 169 | |
| 170 | assert := internal.NewAssert(t, "TestRandSymbolChar") |
| 171 | assert.Equal(10, len(symbolChars)) |
| 172 | assert.Equal(true, reg.MatchString(symbolChars)) |
| 173 | } |
| 174 | |
| 175 | func TestRandFloat(t *testing.T) { |
| 176 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…