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

Method conflict_count

atomic-core/src/output/repo/file.rs:354–356  ·  view source on GitHub ↗

Get the number of conflicts. # Returns Count of conflicts detected. # Example ```rust use atomic_core::output::repo::FileOutputResult; use atomic_core::types::Inode; let result = FileOutputResult::empty("test.rs", Inode::ROOT); assert_eq!(result.conflict_count(), 0); ```

(&self)

Source from the content-addressed store, hash-verified

352 /// assert_eq!(result.conflict_count(), 0);
353 /// ```
354 pub fn conflict_count(&self) -> usize {
355 self.conflicts.len()
356 }
357
358 /// Create an empty result (for testing or dry-run).
359 ///

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected