TestNew - serve favicon | Serves favicon from file path | Returns 200 OK with correct Content-Type (image/png) |
TestNew - other paths pass through | Non-favicon paths are not intercepted | Request passes to next handler, returns route response |
TestFromData | Serves favicon from byte data | Returns 200 OK with favicon data |
TestWithOptions_CustomURL - custom url serves | Serves favicon at custom URL path | Returns 200 OK at /icon.png |
TestWithOptions_CustomURL - default url does not serve | Default path not served with custom URL | Returns 404 at /favicon.ico |
TestWithOptions_FS | Serves favicon from fs.FS interface | Returns 200 OK with data from MapFS |
TestWithOptions_MaxAge | Custom cache control max-age | Sets Cache-Control: public, max-age=3600 |
TestWithOptions_HeadMethod | HEAD request handling | Returns 200 OK with headers but no body |
TestEmpty | Empty middleware returns no content | Returns 204 No Content for favicon requests |
TestRedirect | Redirects favicon to external URL | Returns 301 with Location header to CDN |
TestSVG - favicon.ico serves SVG | SVG data served at .ico path | Returns 200 OK with image/svg+xml content type |
TestSVG - favicon.svg serves SVG | SVG data served at .svg path | Returns 200 OK at /favicon.svg |
TestWithOptions_NoData | No data provided in options | Returns 204 No Content |