Average the fuzzy match percentage over total code bytes.
(&mut self)
| 243 | impl Measures { |
| 244 | /// Average the fuzzy match percentage over total code bytes. |
| 245 | pub fn calc_fuzzy_match_percent(&mut self) { |
| 246 | if self.total_code == 0 { |
| 247 | self.fuzzy_match_percent = 100.0; |
| 248 | } else { |
| 249 | self.fuzzy_match_percent /= self.total_code as f32; |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | /// Calculate the percentage of matched code, data, and functions. |
| 254 | pub fn calc_matched_percent(&mut self) { |
no outgoing calls
no test coverage detected