Skip to content

Commit d413678

Browse files
committed
cleanup
1 parent 1a5dc60 commit d413678

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

pkg/config/datafileprojectconfig/config_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import (
2424
"path/filepath"
2525
"testing"
2626

27+
jsoniter "github.com/json-iterator/go"
2728
datafileEntities "github.com/optimizely/go-sdk/v2/pkg/config/datafileprojectconfig/entities"
2829
"github.com/optimizely/go-sdk/v2/pkg/entities"
2930
"github.com/optimizely/go-sdk/v2/pkg/logging"
30-
jsoniter "github.com/json-iterator/go"
3131

3232
"github.com/stretchr/testify/assert"
3333
)
@@ -736,11 +736,11 @@ func TestHoldoutConfig_EmptyHoldouts(t *testing.T) {
736736
datafile := &datafileEntities.Datafile{
737737
Version: "4",
738738
AccountID: "12345",
739-
ProjectID: "67890",
739+
ProjectID: "67890",
740740
Revision: "1",
741741
Holdouts: []datafileEntities.Holdout{},
742742
}
743-
743+
744744
jsonBytes, err := jsoniter.Marshal(datafile)
745745
assert.NoError(t, err)
746746

@@ -786,7 +786,7 @@ func TestHoldoutConfig_HoldoutMapping(t *testing.T) {
786786
},
787787
{
788788
ExperimentCore: datafileEntities.ExperimentCore{
789-
ID: "excluded_holdout",
789+
ID: "excluded_holdout",
790790
Key: "excluded_ho",
791791
},
792792
Status: datafileEntities.HoldoutStatusRunning,
@@ -795,7 +795,7 @@ func TestHoldoutConfig_HoldoutMapping(t *testing.T) {
795795
},
796796
},
797797
}
798-
798+
799799
jsonBytes, err := jsoniter.Marshal(datafile)
800800
assert.NoError(t, err)
801801

@@ -840,7 +840,7 @@ func TestHoldoutConfig_GetHoldout(t *testing.T) {
840840
},
841841
},
842842
}
843-
843+
844844
jsonBytes, err := jsoniter.Marshal(datafile)
845845
assert.NoError(t, err)
846846

@@ -903,7 +903,7 @@ func TestGetHoldoutsForFlag_Logic(t *testing.T) {
903903
},
904904
},
905905
}
906-
906+
907907
jsonBytes, err := jsoniter.Marshal(datafile)
908908
assert.NoError(t, err)
909909

@@ -962,7 +962,7 @@ func TestGetHoldoutsForFlag_Caching(t *testing.T) {
962962
},
963963
},
964964
}
965-
965+
966966
jsonBytes, err := jsoniter.Marshal(datafile)
967967
assert.NoError(t, err)
968968

@@ -975,7 +975,7 @@ func TestGetHoldoutsForFlag_Caching(t *testing.T) {
975975
// First call should populate cache
976976
holdouts1 := config.GetHoldoutsForFlag("feature_1")
977977
assert.Len(t, holdouts1, 1)
978-
978+
979979
// Cache should now have entry
980980
assert.Len(t, config.flagHoldoutsMap, 1)
981981
assert.Contains(t, config.flagHoldoutsMap, "flag_1")

pkg/config/datafileprojectconfig/mappers/feature_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@ func TestMapFeatures(t *testing.T) {
7777
assert.Equal(t, expectedFeatureMap, featureMap)
7878
assert.Equal(t, expectedExperimentMap, experimentMap)
7979
}
80-

0 commit comments

Comments
 (0)