Skip to content

Commit 0f63501

Browse files
Format everything with gofumpt (linode#602)
1 parent f20d5f2 commit 0f63501

12 files changed

+20
-16
lines changed

test/integration/instance_reserved_ips_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func TestInstance_CreateWithReservedIPAddress(t *testing.T) {
2828
if err != nil {
2929
t.Fatalf("Error creating instance with reserved IP: %s", err)
3030
}
31-
3231
}
3332

3433
func createInstanceWithReservedIP(

test/integration/instances_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package integration
33
import (
44
"context"
55
"encoding/base64"
6-
"github.com/linode/linodego"
7-
"github.com/stretchr/testify/require"
86
"slices"
97
"strconv"
108
"testing"
9+
10+
"github.com/linode/linodego"
11+
"github.com/stretchr/testify/require"
1112
)
1213

1314
type instanceModifier func(*linodego.Client, *linodego.InstanceCreateOptions)

test/integration/network_reserved_ips_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package integration
33
import (
44
"context"
55
"strings"
6-
76
"testing"
87

98
"github.com/linode/linodego"
@@ -71,7 +70,6 @@ func TestReservedIPAddresses_EndToEndTest(t *testing.T) {
7170
filter := ""
7271

7372
ipList, err := client.ListReservedIPAddresses(context.Background(), NewListOptions(0, filter))
74-
7573
if err != nil {
7674
t.Fatalf("Error listing IP addresses: %v", err)
7775
}
@@ -170,7 +168,6 @@ func TestReservedIPAddresses_ListIPAddressesVariants(t *testing.T) {
170168
}
171169

172170
ipList, err := client.ListIPAddresses(context.Background(), &listOptions)
173-
174171
if err != nil {
175172
t.Fatalf("Error listing reserved IP addresses in us-east: %v", err)
176173
}
@@ -196,7 +193,6 @@ func TestReservedIPAddresses_ListIPAddressesVariants(t *testing.T) {
196193
if foundReservedIPs != expected_ips {
197194
t.Errorf("Expected %d but found %d while listing reserved IP addresses", expected_ips, foundReservedIPs)
198195
}
199-
200196
}
201197

202198
// TestReservedIPAddresses_GetIPAddressVariants tests various scenarios for getting a specific IP address

test/unit/account_child_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package unit
22

33
import (
44
"context"
5-
"github.com/stretchr/testify/assert"
65
"os"
76
"testing"
87
"time"
8+
9+
"github.com/stretchr/testify/assert"
910
)
1011

1112
var fixtures *TestFixtures

test/unit/account_transfer_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package unit
22

33
import (
44
"context"
5-
"github.com/stretchr/testify/assert"
65
"testing"
6+
7+
"github.com/stretchr/testify/assert"
78
)
89

910
func TestAccount_getTransfer(t *testing.T) {

test/unit/images_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package unit
22

33
import (
44
"context"
5-
"github.com/stretchr/testify/assert"
65
"testing"
76
"time"
87

8+
"github.com/stretchr/testify/assert"
9+
910
"github.com/linode/linodego"
1011
)
1112

test/unit/instance_stats_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestInstanceStats_Get(t *testing.T) {
2323

2424
assert.Equal(t, "linode.com - my-linode (linode123456) - day (5 min avg)", stats.Title)
2525

26-
fmt.Printf("Stats: %+v\n", stats) //TODO:: Debug for assertion remove later
26+
fmt.Printf("Stats: %+v\n", stats) // TODO:: Debug for assertion remove later
2727

2828
assert.Len(t, stats.Data.CPU, 1)
2929

test/unit/instance_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package unit
22

33
import (
44
"context"
5+
"testing"
6+
57
"github.com/jarcoal/httpmock"
68
"github.com/linode/linodego"
7-
"testing"
89

910
"github.com/stretchr/testify/assert"
1011
)

test/unit/lke_node_pools_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package unit
22

33
import (
44
"context"
5+
"testing"
6+
57
"github.com/linode/linodego"
68
"github.com/stretchr/testify/assert"
7-
"testing"
89

910
"github.com/jarcoal/httpmock"
1011
)

test/unit/profile_grants_list_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package unit
22

33
import (
44
"context"
5-
"github.com/stretchr/testify/assert"
65
"testing"
6+
7+
"github.com/stretchr/testify/assert"
78
)
89

910
func TestGrantsList(t *testing.T) {

0 commit comments

Comments
 (0)