Skip to content

Commit a98950d

Browse files
authored
chore: sort imports of go files (#214)
Signed-off-by: yongruilin <yongrlin@outlook.com>
1 parent 68f0c7b commit a98950d

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

e2e/evaluation_fuzz_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package e2e_test
22

33
import (
44
"context"
5-
"github.com/open-feature/go-sdk/pkg/openfeature"
6-
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
75
"strings"
86
"testing"
7+
8+
"github.com/open-feature/go-sdk/pkg/openfeature"
9+
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
910
)
1011

1112
func setupFuzzClient(f *testing.F) *openfeature.Client {

e2e/evaluation_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"strconv"
8+
"testing"
9+
710
"github.com/cucumber/godog"
811
"github.com/open-feature/go-sdk/pkg/openfeature"
912
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
10-
"strconv"
11-
"testing"
1213
)
1314

1415
var client = openfeature.NewClient("evaluation tests")

pkg/openfeature/evaluation_context_test.go

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

33
import (
44
"context"
5-
"github.com/golang/mock/gomock"
65
"reflect"
76
"testing"
7+
8+
"github.com/golang/mock/gomock"
89
)
910

1011
// The `evaluation context` structure MUST define an optional `targeting key` field of type string,

pkg/openfeature/hooks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ func TestRequirement_4_5_2(t *testing.T) {
893893
if err != nil {
894894
t.Errorf("error setting up provider %v", err)
895895
}
896-
896+
897897
mockProvider.EXPECT().Hooks().AnyTimes()
898898

899899
hookHints := NewHookHints(map[string]interface{}{"foo": "bar"})

pkg/openfeature/memprovider/in_memory_provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package memprovider
33
import (
44
"context"
55
"fmt"
6+
67
"github.com/open-feature/go-sdk/pkg/openfeature"
78
)
89

pkg/openfeature/memprovider/in_memory_provider_test.go

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

33
import (
44
"context"
5-
"github.com/open-feature/go-sdk/pkg/openfeature"
65
"testing"
6+
7+
"github.com/open-feature/go-sdk/pkg/openfeature"
78
)
89

910
func TestInMemoryProvider_boolean(t *testing.T) {

pkg/openfeature/openfeature_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package openfeature
22

33
import (
4-
"github.com/go-logr/logr"
5-
"github.com/open-feature/go-sdk/pkg/openfeature/internal"
64
"reflect"
75
"testing"
86
"time"
97

8+
"github.com/go-logr/logr"
109
"github.com/golang/mock/gomock"
10+
11+
"github.com/open-feature/go-sdk/pkg/openfeature/internal"
1112
)
1213

1314
// The `API`, and any state it maintains SHOULD exist as a global singleton,

0 commit comments

Comments
 (0)