(t *testing.T)
| 205 | } |
| 206 | |
| 207 | func TestAlphanumeric(t *testing.T) { |
| 208 | t.Log("TestAlphanumeric") |
| 209 | alphanumric := Alphanumeric(10) |
| 210 | if len(alphanumric) != 10 { |
| 211 | t.Error("alphanumric has wrong size") |
| 212 | } |
| 213 | re := regexp.MustCompile(`^[[:alnum:]]+$`) |
| 214 | if !re.MatchString(alphanumric) { |
| 215 | t.Error("alphanumric contains invalid character") |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func TestBool(t *testing.T) { |
| 220 | t.Log("TestBool") |
nothing calls this directly
no test coverage detected
searching dependent graphs…