From e08c3889c19fce02f36a085d7f0930d2fbb6c49f Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Mon, 16 Sep 2024 13:16:05 -0400 Subject: lsp suggested fix to tests --- nccli_test.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'nccli_test.go') diff --git a/nccli_test.go b/nccli_test.go index fdd075c..4495f05 100644 --- a/nccli_test.go +++ b/nccli_test.go @@ -309,13 +309,13 @@ func TestGetAllRecordsValidXMLResponse(t *testing.T) { 32.76 ` - want := []Host{Host{ + want := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", @@ -469,13 +469,13 @@ func TestAddRecordValidXMLResponse(t *testing.T) { MXPref: 42, TTL: 4242, } - newHosts := []Host{Host{ + newHosts := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", @@ -537,13 +537,13 @@ func TestAddRecordInValidXMLResponse(t *testing.T) { MXPref: 42, TTL: 4242, } - newHosts := []Host{Host{ + newHosts := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", @@ -613,13 +613,13 @@ func TestAddRecordErrorXMLResponse(t *testing.T) { MXPref: 42, TTL: 4242, } - newHosts := []Host{Host{ + newHosts := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", @@ -694,13 +694,13 @@ func TestUpdateRecordValidXMLResponse(t *testing.T) { MXPref: 42, TTL: 4242, } - newHosts := []Host{Host{ + newHosts := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", @@ -763,13 +763,13 @@ func TestUpdateRecordInValidXMLResponse(t *testing.T) { MXPref: 42, TTL: 4242, } - newHosts := []Host{Host{ + newHosts := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", @@ -840,13 +840,13 @@ func TestUpdateRecordErrorXMLResponse(t *testing.T) { MXPref: 42, TTL: 4242, } - newHosts := []Host{Host{ + newHosts := []Host{{ Name: "@", Type: "A", Address: "1.2.3.4", MXPref: 10, TTL: 1800, - }, Host{ + }, { Name: "www", Type: "A", Address: "122.23.3.7", -- cgit v1.2.3