(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestNumericMinMaxEncoderZero(t *testing.T) { |
| 67 | var encoder = NewValueEncoder() |
| 68 | encoder.conf = &Config{ |
| 69 | MinMax: true, |
| 70 | } |
| 71 | |
| 72 | var res []string |
| 73 | for _, val := range numericTestZero { |
| 74 | res = append(res, encoder.Int("bytes", val)) |
| 75 | } |
| 76 | |
| 77 | assert.Equal(t, res, []string{"0.0000000000", "0.0000000000", "0.0000000000", "0.0000000000", "0.0000000000", "0.0000000000"}, "unexpected output") |
| 78 | } |
| 79 | |
| 80 | var numericTest = []int{5, 2, 6, 5, 2, 6} |
| 81 | var numericTestFloat = []float64{5, 2, 6, 5, 2, 6} |
nothing calls this directly
no test coverage detected