@@ -28,6 +28,7 @@ var m2, _ = metric.New("m1",
28
28
"c" : float64 (4 ),
29
29
"d" : float64 (6 ),
30
30
"e" : float64 (200 ),
31
+ "f" : uint64 (200 ),
31
32
"ignoreme" : "string" ,
32
33
"andme" : true ,
33
34
},
@@ -81,6 +82,10 @@ func TestBasicStatsWithPeriod(t *testing.T) {
81
82
"e_max" : float64 (200 ),
82
83
"e_min" : float64 (200 ),
83
84
"e_mean" : float64 (200 ),
85
+ "f_count" : float64 (1 ), //f
86
+ "f_max" : float64 (200 ),
87
+ "f_min" : float64 (200 ),
88
+ "f_mean" : float64 (200 ),
84
89
}
85
90
expectedTags := map [string ]string {
86
91
"foo" : "bar" ,
@@ -144,6 +149,10 @@ func TestBasicStatsDifferentPeriods(t *testing.T) {
144
149
"e_max" : float64 (200 ),
145
150
"e_min" : float64 (200 ),
146
151
"e_mean" : float64 (200 ),
152
+ "f_count" : float64 (1 ), //f
153
+ "f_max" : float64 (200 ),
154
+ "f_min" : float64 (200 ),
155
+ "f_mean" : float64 (200 ),
147
156
}
148
157
expectedTags = map [string ]string {
149
158
"foo" : "bar" ,
@@ -169,6 +178,7 @@ func TestBasicStatsWithOnlyCount(t *testing.T) {
169
178
"c_count" : float64 (2 ),
170
179
"d_count" : float64 (2 ),
171
180
"e_count" : float64 (1 ),
181
+ "f_count" : float64 (1 ),
172
182
}
173
183
expectedTags := map [string ]string {
174
184
"foo" : "bar" ,
@@ -194,6 +204,7 @@ func TestBasicStatsWithOnlyMin(t *testing.T) {
194
204
"c_min" : float64 (2 ),
195
205
"d_min" : float64 (2 ),
196
206
"e_min" : float64 (200 ),
207
+ "f_min" : float64 (200 ),
197
208
}
198
209
expectedTags := map [string ]string {
199
210
"foo" : "bar" ,
@@ -219,6 +230,7 @@ func TestBasicStatsWithOnlyMax(t *testing.T) {
219
230
"c_max" : float64 (4 ),
220
231
"d_max" : float64 (6 ),
221
232
"e_max" : float64 (200 ),
233
+ "f_max" : float64 (200 ),
222
234
}
223
235
expectedTags := map [string ]string {
224
236
"foo" : "bar" ,
@@ -244,6 +256,7 @@ func TestBasicStatsWithOnlyMean(t *testing.T) {
244
256
"c_mean" : float64 (3 ),
245
257
"d_mean" : float64 (4 ),
246
258
"e_mean" : float64 (200 ),
259
+ "f_mean" : float64 (200 ),
247
260
}
248
261
expectedTags := map [string ]string {
249
262
"foo" : "bar" ,
@@ -269,6 +282,7 @@ func TestBasicStatsWithOnlySum(t *testing.T) {
269
282
"c_sum" : float64 (6 ),
270
283
"d_sum" : float64 (8 ),
271
284
"e_sum" : float64 (200 ),
285
+ "f_sum" : float64 (200 ),
272
286
}
273
287
expectedTags := map [string ]string {
274
288
"foo" : "bar" ,
@@ -399,6 +413,8 @@ func TestBasicStatsWithMinAndMax(t *testing.T) {
399
413
"d_min" : float64 (2 ),
400
414
"e_max" : float64 (200 ), //e
401
415
"e_min" : float64 (200 ),
416
+ "f_max" : float64 (200 ), //f
417
+ "f_min" : float64 (200 ),
402
418
}
403
419
expectedTags := map [string ]string {
404
420
"foo" : "bar" ,
@@ -450,6 +466,11 @@ func TestBasicStatsWithAllStats(t *testing.T) {
450
466
"e_min" : float64 (200 ),
451
467
"e_mean" : float64 (200 ),
452
468
"e_sum" : float64 (200 ),
469
+ "f_count" : float64 (1 ), //f
470
+ "f_max" : float64 (200 ),
471
+ "f_min" : float64 (200 ),
472
+ "f_mean" : float64 (200 ),
473
+ "f_sum" : float64 (200 ),
453
474
}
454
475
expectedTags := map [string ]string {
455
476
"foo" : "bar" ,
0 commit comments