coverage goal is 70% by the end of the night.

This commit is contained in:
Will Charczuk 2016-08-05 20:44:40 -07:00
parent 95d0bcca4b
commit 54f3bd4d3a
4 changed files with 77 additions and 1 deletions

View file

@ -56,5 +56,14 @@ func FloatValueFormatterWithFormat(v interface{}, floatFormat string) string {
if typed, isTyped := v.(float64); isTyped {
return fmt.Sprintf(floatFormat, typed)
}
if typed, isTyped := v.(float32); isTyped {
return fmt.Sprintf(floatFormat, typed)
}
if typed, isTyped := v.(int); isTyped {
return fmt.Sprintf(floatFormat, float64(typed))
}
if typed, isTyped := v.(int64); isTyped {
return fmt.Sprintf(floatFormat, float64(typed))
}
return ""
}