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

Method old_change_count

atomic-core/src/diff/inline.rs:455–457  ·  view source on GitHub ↗

Count the number of changed hunks in the old line.

(&self)

Source from the content-addressed store, hash-verified

453
454 /// Count the number of changed hunks in the old line.
455 pub fn old_change_count(&self) -> usize {
456 self.old_hunks.iter().filter(|s| s.is_change()).count()
457 }
458
459 /// Count the number of changed hunks in the new line.
460 pub fn new_change_count(&self) -> usize {

Callers

nothing calls this directly

Calls 3

countMethod · 0.45
iterMethod · 0.45
is_changeMethod · 0.45

Tested by

no test coverage detected