MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / stats

Method stats

atomic-core/src/change/credit.rs:662–670  ·  view source on GitHub ↗

Get statistics for this file.

(&self)

Source from the content-addressed store, hash-verified

660
661 /// Get statistics for this file.
662 pub fn stats(&self) -> CreditStats {
663 let mut stats = CreditStats::new();
664 for range in &self.ranges {
665 for _ in 0..range.line_count() {
666 stats.add(&range.credit);
667 }
668 }
669 stats
670 }
671
672 /// Get the total line count.
673 pub fn total_lines(&self) -> u64 {

Callers 3

format_outcomeMethod · 0.45
test_file_credits_statsFunction · 0.45
test_line_analysis_diffFunction · 0.45

Calls 2

line_countMethod · 0.45
addMethod · 0.45

Tested by 2

test_file_credits_statsFunction · 0.36
test_line_analysis_diffFunction · 0.36