Skip to content

Commit

Permalink
Format everything with gofumpt (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai authored Nov 7, 2024
1 parent f20d5f2 commit 0f63501
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 16 deletions.
1 change: 0 additions & 1 deletion test/integration/instance_reserved_ips_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func TestInstance_CreateWithReservedIPAddress(t *testing.T) {
if err != nil {
t.Fatalf("Error creating instance with reserved IP: %s", err)
}

}

func createInstanceWithReservedIP(
Expand Down
5 changes: 3 additions & 2 deletions test/integration/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package integration
import (
"context"
"encoding/base64"
"github.com/linode/linodego"
"github.com/stretchr/testify/require"
"slices"
"strconv"
"testing"

"github.com/linode/linodego"
"github.com/stretchr/testify/require"
)

type instanceModifier func(*linodego.Client, *linodego.InstanceCreateOptions)
Expand Down
4 changes: 0 additions & 4 deletions test/integration/network_reserved_ips_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package integration
import (
"context"
"strings"

"testing"

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

ipList, err := client.ListReservedIPAddresses(context.Background(), NewListOptions(0, filter))

if err != nil {
t.Fatalf("Error listing IP addresses: %v", err)
}
Expand Down Expand Up @@ -170,7 +168,6 @@ func TestReservedIPAddresses_ListIPAddressesVariants(t *testing.T) {
}

ipList, err := client.ListIPAddresses(context.Background(), &listOptions)

if err != nil {
t.Fatalf("Error listing reserved IP addresses in us-east: %v", err)
}
Expand All @@ -196,7 +193,6 @@ func TestReservedIPAddresses_ListIPAddressesVariants(t *testing.T) {
if foundReservedIPs != expected_ips {
t.Errorf("Expected %d but found %d while listing reserved IP addresses", expected_ips, foundReservedIPs)
}

}

// TestReservedIPAddresses_GetIPAddressVariants tests various scenarios for getting a specific IP address
Expand Down
3 changes: 2 additions & 1 deletion test/unit/account_child_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package unit

import (
"context"
"github.com/stretchr/testify/assert"
"os"
"testing"
"time"

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

var fixtures *TestFixtures
Expand Down
3 changes: 2 additions & 1 deletion test/unit/account_transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package unit

import (
"context"
"github.com/stretchr/testify/assert"
"testing"

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

func TestAccount_getTransfer(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/unit/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package unit

import (
"context"
"github.com/stretchr/testify/assert"
"testing"
"time"

"github.com/stretchr/testify/assert"

"github.com/linode/linodego"
)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/instance_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestInstanceStats_Get(t *testing.T) {

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

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

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

Expand Down
3 changes: 2 additions & 1 deletion test/unit/instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package unit

import (
"context"
"testing"

"github.com/jarcoal/httpmock"
"github.com/linode/linodego"
"testing"

"github.com/stretchr/testify/assert"
)
Expand Down
3 changes: 2 additions & 1 deletion test/unit/lke_node_pools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package unit

import (
"context"
"testing"

"github.com/linode/linodego"
"github.com/stretchr/testify/assert"
"testing"

"github.com/jarcoal/httpmock"
)
Expand Down
3 changes: 2 additions & 1 deletion test/unit/profile_grants_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package unit

import (
"context"
"github.com/stretchr/testify/assert"
"testing"

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

func TestGrantsList(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/unit/profile_security_questions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package unit

import (
"context"
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"

"github.com/jarcoal/httpmock"
"github.com/linode/linodego"
)
Expand Down
3 changes: 2 additions & 1 deletion test/unit/profile_tfa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package unit

import (
"context"
"github.com/stretchr/testify/assert"
"testing"
"time"

"github.com/stretchr/testify/assert"

"github.com/jarcoal/httpmock"
"github.com/linode/linodego"
)
Expand Down

0 comments on commit 0f63501

Please sign in to comment.