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

Method new_change_count

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

Count the number of changed hunks in the new line.

(&self)

Source from the content-addressed store, hash-verified

458
459 /// Count the number of changed hunks in the new line.
460 pub fn new_change_count(&self) -> usize {
461 self.new_hunks.iter().filter(|s| s.is_change()).count()
462 }
463
464 /// Get the total number of bytes that were deleted.
465 pub fn deleted_bytes(&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