@@ -51,7 +51,7 @@ func TestAPICompatibilityWithStringFeatureKey(t *testing.T) {
5151 }
5252
5353 // Create instance
54- instance := NewFeaturevisor (InstanceOptions {
54+ instance := NewFeaturevisor (Options {
5555 Datafile : datafile ,
5656 Context : Context {"userId" : "123" },
5757 })
@@ -108,7 +108,7 @@ func TestAPICompatibilityWithStringFeatureKey(t *testing.T) {
108108
109109func TestAPICompatibilityWithNonExistentFeature (t * testing.T ) {
110110 // Create instance with empty datafile
111- instance := NewFeaturevisor (InstanceOptions {
111+ instance := NewFeaturevisor (Options {
112112 Datafile : DatafileContent {
113113 SchemaVersion : "2" ,
114114 Revision : "test" ,
@@ -665,7 +665,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
665665 t .Run ("allowSignup" , func (t * testing.T ) {
666666 // Test Netherlands (NL) - should always get treatment variation
667667 // Using bucket value 60000 (60%) to ensure we get treatment variation
668- instance := NewFeaturevisor (InstanceOptions {
668+ instance := NewFeaturevisor (Options {
669669 Datafile : datafile ,
670670 Context : Context {
671671 "country" : "nl" ,
@@ -712,7 +712,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
712712 }
713713
714714 // Test Switzerland (CH) - should get treatment variation based on weight
715- instanceCH := NewFeaturevisor (InstanceOptions {
715+ instanceCH := NewFeaturevisor (Options {
716716 Datafile : datafile ,
717717 Context : Context {
718718 "country" : "ch" ,
@@ -735,7 +735,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
735735 }
736736
737737 // Test Germany (DE) - should get control variation in everyone segment
738- instanceDE := NewFeaturevisor (InstanceOptions {
738+ instanceDE := NewFeaturevisor (Options {
739739 Datafile : datafile ,
740740 Context : Context {
741741 "country" : "de" ,
@@ -762,7 +762,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
762762 t .Run ("bar" , func (t * testing.T ) {
763763 // Test with US context (should get control variation at low bucket values)
764764 // Using bucket value 15000 (15%) to get control variation
765- instance := NewFeaturevisor (InstanceOptions {
765+ instance := NewFeaturevisor (Options {
766766 Datafile : datafile ,
767767 Context : Context {
768768 "country" : "us" ,
@@ -802,7 +802,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
802802
803803 // Test with Germany context (should get variation 'b' with overrides)
804804 // Using bucket value 20000 (20%) to get variation 'b'
805- instanceDE := NewFeaturevisor (InstanceOptions {
805+ instanceDE := NewFeaturevisor (Options {
806806 Datafile : datafile ,
807807 Context : Context {
808808 "country" : "de" ,
@@ -829,7 +829,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
829829 t .Run ("foo" , func (t * testing.T ) {
830830 // Test with mobile + Germany context (should get treatment variation)
831831 // Using bucket value 60000 (60%) to get treatment variation
832- instance := NewFeaturevisor (InstanceOptions {
832+ instance := NewFeaturevisor (Options {
833833 Datafile : datafile ,
834834 Context : Context {
835835 "country" : "de" ,
@@ -874,7 +874,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
874874 }
875875
876876 // Test force rule
877- instanceForce := NewFeaturevisor (InstanceOptions {
877+ instanceForce := NewFeaturevisor (Options {
878878 Datafile : datafile ,
879879 Context : Context {
880880 "userId" : "123" ,
@@ -905,7 +905,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
905905 t .Run ("sidebar" , func (t * testing.T ) {
906906 // Test with Netherlands context (should get treatment variation)
907907 // Using bucket value 90000 (90%) to get treatment variation
908- instance := NewFeaturevisor (InstanceOptions {
908+ instance := NewFeaturevisor (Options {
909909 Datafile : datafile ,
910910 Context : Context {
911911 "country" : "nl" ,
@@ -958,7 +958,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
958958
959959 // Test with Germany context (should get color override)
960960 // Using bucket value 90000 (90%) to get treatment variation
961- instanceDE := NewFeaturevisor (InstanceOptions {
961+ instanceDE := NewFeaturevisor (Options {
962962 Datafile : datafile ,
963963 Context : Context {
964964 "country" : "de" ,
@@ -990,7 +990,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
990990 t .Run ("qux" , func (t * testing.T ) {
991991 // Test with Netherlands context (should get variation 'b' based on allocation)
992992 // Using bucket value 70000 (70%) to get variation 'b'
993- instance := NewFeaturevisor (InstanceOptions {
993+ instance := NewFeaturevisor (Options {
994994 Datafile : datafile ,
995995 Context : Context {
996996 "country" : "nl" ,
@@ -1025,7 +1025,7 @@ func TestProductionDatafileFeatures(t *testing.T) {
10251025
10261026 // Test with Germany context (should get variation 'b' based on allocation)
10271027 // Using bucket value 70000 (70%) to get variation 'b'
1028- instanceDE := NewFeaturevisor (InstanceOptions {
1028+ instanceDE := NewFeaturevisor (Options {
10291029 Datafile : datafile ,
10301030 Context : Context {
10311031 "country" : "de" ,
@@ -1095,7 +1095,7 @@ func TestProductionDatafileSegments(t *testing.T) {
10951095 // Test segment evaluation
10961096 t .Run ("segmentEvaluation" , func (t * testing.T ) {
10971097 // Test Germany segment
1098- instance := NewFeaturevisor (InstanceOptions {
1098+ instance := NewFeaturevisor (Options {
10991099 Datafile : datafile ,
11001100 Context : Context {
11011101 "country" : "de" ,
@@ -1109,7 +1109,7 @@ func TestProductionDatafileSegments(t *testing.T) {
11091109 }
11101110
11111111 // Test Netherlands segment (should match because of everyone segment rule)
1112- instanceNL := NewFeaturevisor (InstanceOptions {
1112+ instanceNL := NewFeaturevisor (Options {
11131113 Datafile : datafile ,
11141114 Context : Context {
11151115 "country" : "nl" ,
@@ -1123,7 +1123,7 @@ func TestProductionDatafileSegments(t *testing.T) {
11231123 }
11241124
11251125 // Test mobile segment
1126- _ = NewFeaturevisor (InstanceOptions {
1126+ _ = NewFeaturevisor (Options {
11271127 Datafile : datafile ,
11281128 Context : Context {
11291129 "device" : "mobile" ,
@@ -1132,7 +1132,7 @@ func TestProductionDatafileSegments(t *testing.T) {
11321132 })
11331133
11341134 // Test everyone segment
1135- instanceEveryone := NewFeaturevisor (InstanceOptions {
1135+ instanceEveryone := NewFeaturevisor (Options {
11361136 Datafile : datafile ,
11371137 Context : Context {
11381138 "userId" : "test-user" ,
0 commit comments