MCPcopy
hub / github.com/gofiber/fiber / Test_Domain_Security_EmptyParamName

Function Test_Domain_Security_EmptyParamName

domain_test.go:1580–1586  ·  view source on GitHub ↗

Test_Domain_Security_EmptyParamName tests that empty parameter names are rejected

(t *testing.T)

Source from the content-addressed store, hash-verified

1578
1579// Test_Domain_Security_EmptyParamName tests that empty parameter names are rejected
1580func Test_Domain_Security_EmptyParamName(t *testing.T) {
1581 t.Parallel()
1582
1583 require.Panics(t, func() {
1584 parseDomainPattern(":.example.com")
1585 })
1586}
1587
1588// Test_Domain_Security_InvalidParamName tests that invalid parameter names are rejected
1589func Test_Domain_Security_InvalidParamName(t *testing.T) {

Callers

nothing calls this directly

Calls 1

parseDomainPatternFunction · 0.85

Tested by

no test coverage detected