refactor(security_test): standardize struct field formatting in SSRF whitelist tests

- Adjusted the formatting of struct fields in the SSRF whitelist test cases for improved readability and consistency.
- No functional changes were made; this is purely a code style improvement to enhance maintainability.
This commit is contained in:
wizardchen
2026-05-10 22:51:31 +08:00
committed by lyingbug
parent 0f5dc41f4e
commit c2d60933c8
+5 -5
View File
@@ -218,11 +218,11 @@ func TestValidateURLForSSRF_IPv6Whitelist(t *testing.T) {
// operator overrides SSRF_WHITELIST in their .env.
func TestSSRFWhitelistExtraMerge(t *testing.T) {
cases := []struct {
name string
main string
extra string
host string
want bool
name string
main string
extra string
host string
want bool
}{
{name: "extra only", main: "", extra: "searxng", host: "searxng", want: true},
{name: "main only does not match extra host", main: "internal", extra: "", host: "searxng", want: false},