(matches, length int)
| 26 | ) |
| 27 | |
| 28 | func calculateRatio(matches, length int) float64 { |
| 29 | if length > 0 { |
| 30 | return 2.0 * float64(matches) / float64(length) |
| 31 | } |
| 32 | return 1.0 |
| 33 | } |
| 34 | |
| 35 | func listifyString(str string) (lst []string) { |
| 36 | lst = make([]string, len(str)) |
no outgoing calls
no test coverage detected