@@ -20,7 +20,7 @@ func Test_LruAssignmentLogger_cacheAssignment(t *testing.T) {
20
20
Variation : "123.45" ,
21
21
Subject : "testSubject" ,
22
22
Timestamp : "testTimestamp" ,
23
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
23
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
24
24
}
25
25
26
26
logger .LogAssignment (event )
@@ -42,7 +42,7 @@ func Test_LruAssignmentLogger_timestampAndAttributesAreNotImportant(t *testing.T
42
42
Subject : "testSubject" ,
43
43
Experiment : "testExperiment" ,
44
44
Timestamp : "t1" ,
45
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue1" },
45
+ SubjectAttributes : Attributes {"testKey" : "testValue1" },
46
46
})
47
47
logger .LogAssignment (AssignmentEvent {
48
48
FeatureFlag : "testFeatureFlag" ,
@@ -51,7 +51,7 @@ func Test_LruAssignmentLogger_timestampAndAttributesAreNotImportant(t *testing.T
51
51
Subject : "testSubject" ,
52
52
Experiment : "testExperiment" ,
53
53
Timestamp : "t2" ,
54
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue2" },
54
+ SubjectAttributes : Attributes {"testKey" : "testValue2" },
55
55
})
56
56
57
57
innerLogger .AssertNumberOfCalls (t , "LogAssignment" , 1 )
@@ -70,7 +70,7 @@ func Test_LruAssignmentLogger_panicsAreNotCached(t *testing.T) {
70
70
Variation : "123.45" ,
71
71
Subject : "testSubject" ,
72
72
Timestamp : "testTimestamp" ,
73
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
73
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
74
74
}
75
75
76
76
assert .Panics (t , func () {
@@ -96,7 +96,7 @@ func Test_LruAssignmentLogger_changeInAllocationCausesLogging(t *testing.T) {
96
96
Variation : "variation" ,
97
97
Subject : "testSubject" ,
98
98
Timestamp : "testTimestamp" ,
99
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
99
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
100
100
})
101
101
logger .LogAssignment (AssignmentEvent {
102
102
Experiment : "testExperiment" ,
@@ -105,7 +105,7 @@ func Test_LruAssignmentLogger_changeInAllocationCausesLogging(t *testing.T) {
105
105
Variation : "variation" ,
106
106
Subject : "testSubject" ,
107
107
Timestamp : "testTimestamp" ,
108
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
108
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
109
109
})
110
110
111
111
innerLogger .AssertNumberOfCalls (t , "LogAssignment" , 2 )
@@ -124,7 +124,7 @@ func Test_LruAssignmentLogger_changeInVariationCausesLogging(t *testing.T) {
124
124
Variation : "variation1" ,
125
125
Subject : "testSubject" ,
126
126
Timestamp : "testTimestamp" ,
127
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
127
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
128
128
})
129
129
logger .LogAssignment (AssignmentEvent {
130
130
Experiment : "testExperiment" ,
@@ -133,7 +133,7 @@ func Test_LruAssignmentLogger_changeInVariationCausesLogging(t *testing.T) {
133
133
Variation : "variation2" ,
134
134
Subject : "testSubject" ,
135
135
Timestamp : "testTimestamp" ,
136
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
136
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
137
137
})
138
138
139
139
innerLogger .AssertNumberOfCalls (t , "LogAssignment" , 2 )
@@ -152,7 +152,7 @@ func Test_LruAssignmentLogger_allocationOscillationOnlyLoggedOnce(t *testing.T)
152
152
Variation : "variation" ,
153
153
Subject : "testSubject" ,
154
154
Timestamp : "t1" ,
155
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
155
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
156
156
})
157
157
logger .LogAssignment (AssignmentEvent {
158
158
Experiment : "testExperiment" ,
@@ -161,7 +161,7 @@ func Test_LruAssignmentLogger_allocationOscillationOnlyLoggedOnce(t *testing.T)
161
161
Variation : "variation" ,
162
162
Subject : "testSubject" ,
163
163
Timestamp : "t2" ,
164
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
164
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
165
165
})
166
166
logger .LogAssignment (AssignmentEvent {
167
167
Experiment : "testExperiment" ,
@@ -170,7 +170,7 @@ func Test_LruAssignmentLogger_allocationOscillationOnlyLoggedOnce(t *testing.T)
170
170
Variation : "variation" ,
171
171
Subject : "testSubject" ,
172
172
Timestamp : "t3" ,
173
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
173
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
174
174
})
175
175
logger .LogAssignment (AssignmentEvent {
176
176
Experiment : "testExperiment" ,
@@ -179,7 +179,7 @@ func Test_LruAssignmentLogger_allocationOscillationOnlyLoggedOnce(t *testing.T)
179
179
Variation : "variation" ,
180
180
Subject : "testSubject" ,
181
181
Timestamp : "t4" ,
182
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
182
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
183
183
})
184
184
185
185
innerLogger .AssertNumberOfCalls (t , "LogAssignment" , 2 )
@@ -198,7 +198,7 @@ func Test_LruAssignmentLogger_variationOscillationOnlyLoggedOnce(t *testing.T) {
198
198
Variation : "variation1" ,
199
199
Subject : "testSubject" ,
200
200
Timestamp : "t1" ,
201
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
201
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
202
202
})
203
203
logger .LogAssignment (AssignmentEvent {
204
204
Experiment : "testExperiment" ,
@@ -207,7 +207,7 @@ func Test_LruAssignmentLogger_variationOscillationOnlyLoggedOnce(t *testing.T) {
207
207
Variation : "variation2" ,
208
208
Subject : "testSubject" ,
209
209
Timestamp : "t2" ,
210
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
210
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
211
211
})
212
212
logger .LogAssignment (AssignmentEvent {
213
213
Experiment : "testExperiment" ,
@@ -216,7 +216,7 @@ func Test_LruAssignmentLogger_variationOscillationOnlyLoggedOnce(t *testing.T) {
216
216
Variation : "variation1" ,
217
217
Subject : "testSubject" ,
218
218
Timestamp : "t3" ,
219
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
219
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
220
220
})
221
221
logger .LogAssignment (AssignmentEvent {
222
222
Experiment : "testExperiment" ,
@@ -225,7 +225,7 @@ func Test_LruAssignmentLogger_variationOscillationOnlyLoggedOnce(t *testing.T) {
225
225
Variation : "variation2" ,
226
226
Subject : "testSubject" ,
227
227
Timestamp : "t4" ,
228
- SubjectAttributes : SubjectAttributes {"testKey" : "testValue" },
228
+ SubjectAttributes : Attributes {"testKey" : "testValue" },
229
229
})
230
230
231
231
innerLogger .AssertNumberOfCalls (t , "LogAssignment" , 2 )
0 commit comments