Test_Domain_Security_EmptyPattern tests that empty domain patterns are rejected
(t *testing.T)
| 1552 | |
| 1553 | // Test_Domain_Security_EmptyPattern tests that empty domain patterns are rejected |
| 1554 | func Test_Domain_Security_EmptyPattern(t *testing.T) { |
| 1555 | t.Parallel() |
| 1556 | |
| 1557 | require.Panics(t, func() { |
| 1558 | parseDomainPattern("") |
| 1559 | }) |
| 1560 | |
| 1561 | require.Panics(t, func() { |
| 1562 | parseDomainPattern(" ") |
| 1563 | }) |
| 1564 | } |
| 1565 | |
| 1566 | // Test_Domain_Security_EmptyLabel tests that domain patterns with empty labels are rejected |
| 1567 | func Test_Domain_Security_EmptyLabel(t *testing.T) { |
nothing calls this directly
no test coverage detected