Skip to content

Commit

Permalink
chore: sort imports of go files (#214)
Browse files Browse the repository at this point in the history
Signed-off-by: yongruilin <[email protected]>
  • Loading branch information
yongruilin authored Sep 5, 2023
1 parent 68f0c7b commit a98950d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
5 changes: 3 additions & 2 deletions e2e/evaluation_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package e2e_test

import (
"context"
"github.com/open-feature/go-sdk/pkg/openfeature"
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
"strings"
"testing"

"github.com/open-feature/go-sdk/pkg/openfeature"
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
)

func setupFuzzClient(f *testing.F) *openfeature.Client {
Expand Down
5 changes: 3 additions & 2 deletions e2e/evaluation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"context"
"errors"
"fmt"
"strconv"
"testing"

"github.com/cucumber/godog"
"github.com/open-feature/go-sdk/pkg/openfeature"
"github.com/open-feature/go-sdk/pkg/openfeature/memprovider"
"strconv"
"testing"
)

var client = openfeature.NewClient("evaluation tests")
Expand Down
3 changes: 2 additions & 1 deletion pkg/openfeature/evaluation_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package openfeature

import (
"context"
"github.com/golang/mock/gomock"
"reflect"
"testing"

"github.com/golang/mock/gomock"
)

// The `evaluation context` structure MUST define an optional `targeting key` field of type string,
Expand Down
2 changes: 1 addition & 1 deletion pkg/openfeature/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ func TestRequirement_4_5_2(t *testing.T) {
if err != nil {
t.Errorf("error setting up provider %v", err)
}

mockProvider.EXPECT().Hooks().AnyTimes()

hookHints := NewHookHints(map[string]interface{}{"foo": "bar"})
Expand Down
1 change: 1 addition & 0 deletions pkg/openfeature/memprovider/in_memory_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package memprovider
import (
"context"
"fmt"

"github.com/open-feature/go-sdk/pkg/openfeature"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/openfeature/memprovider/in_memory_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package memprovider

import (
"context"
"github.com/open-feature/go-sdk/pkg/openfeature"
"testing"

"github.com/open-feature/go-sdk/pkg/openfeature"
)

func TestInMemoryProvider_boolean(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions pkg/openfeature/openfeature_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package openfeature

import (
"github.com/go-logr/logr"
"github.com/open-feature/go-sdk/pkg/openfeature/internal"
"reflect"
"testing"
"time"

"github.com/go-logr/logr"
"github.com/golang/mock/gomock"

"github.com/open-feature/go-sdk/pkg/openfeature/internal"
)

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

0 comments on commit a98950d

Please sign in to comment.