(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestNumericMinMaxEncoder(t *testing.T) { |
| 132 | var encoder = NewValueEncoder() |
| 133 | encoder.conf = &Config{ |
| 134 | MinMax: true, |
| 135 | } |
| 136 | |
| 137 | var res []string |
| 138 | for _, val := range numericTest { |
| 139 | res = append(res, encoder.Int("bytes", val)) |
| 140 | } |
| 141 | |
| 142 | assert.Equal(t, res, []string{"0.0000000000", "0.0000000000", "1.0000000000", "0.7500000000", "0.0000000000", "1.0000000000"}, "unexpected output") |
| 143 | } |
| 144 | |
| 145 | var categoricalTest = []string{ |
| 146 | "TCP", |
nothing calls this directly
no test coverage detected