aboutsummaryrefslogtreecommitdiff
path: root/nccli_test.go
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2024-09-16 17:16:05 +0000
committerKumar Damani <me@kumardamani.net>2024-09-16 17:16:05 +0000
commite08c3889c19fce02f36a085d7f0930d2fbb6c49f (patch)
tree986793269f5e09a494a3c50dedcec4b3582a954b /nccli_test.go
parent509d574700e83df29455285f7a4c6318d5b28921 (diff)
lsp suggested fix to tests
Diffstat (limited to 'nccli_test.go')
-rw-r--r--nccli_test.go28
1 files changed, 14 insertions, 14 deletions
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) {
<ExecutionTime>32.76</ExecutionTime>
</ApiResponse>
`
- 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",