From c2d60933c8cc910584819316533ce077c91e6a86 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sun, 10 May 2026 22:51:31 +0800 Subject: [PATCH] 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. --- internal/utils/security_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/utils/security_test.go b/internal/utils/security_test.go index a21b70a4..f7dd4268 100644 --- a/internal/utils/security_test.go +++ b/internal/utils/security_test.go @@ -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},