git » spf » commit 3c0f83d

test: Group IP address vars into a single block

author tobiloba ogundiyan
2025-03-27 08:26:07 UTC
committer Alberto Bertogli
2025-07-12 21:46:40 UTC
parent 3731c77a3e96a57212e32af95c22e37368df0807

test: Group IP address vars into a single block

This commit groups related IP test address variables into a single block
for improved readability and consistency, and to match the coding style
from the rest of the codebase. No functional changes.

From https://github.com/albertito/spf/pull/10.

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Adjusted commit message.

spf_test.go +6 -4

diff --git a/spf_test.go b/spf_test.go
index a23a00f..181e2a8 100644
--- a/spf_test.go
+++ b/spf_test.go
@@ -21,10 +21,12 @@ func init() {
 	NewDefaultResolver()
 }
 
-var ip1110 = net.ParseIP("1.1.1.0")
-var ip1111 = net.ParseIP("1.1.1.1")
-var ip6666 = net.ParseIP("2001:db8::68")
-var ip6660 = net.ParseIP("2001:db8::0")
+var (
+	ip1110 = net.ParseIP("1.1.1.0")
+	ip1111 = net.ParseIP("1.1.1.1")
+	ip6666 = net.ParseIP("2001:db8::68")
+	ip6660 = net.ParseIP("2001:db8::0")
+)
 
 func TestBasic(t *testing.T) {
 	dns := NewDefaultResolver()