MCPcopy Create free account
hub / github.com/encounter/objdiff / calc_fuzzy_match_percent

Method calc_fuzzy_match_percent

objdiff-core/src/bindings/report.rs:245–251  ·  view source on GitHub ↗

Average the fuzzy match percentage over total code bytes.

(&mut self)

Source from the content-addressed store, hash-verified

243impl 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) {

Callers 3

from_iterMethod · 0.80
report_objectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected