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

Method is_empty

atomic-core/src/output/repo/outcome.rs:147–149  ·  view source on GitHub ↗

Check if no operations were performed. Returns `true` if no files were written, no directories created, and no files skipped. # Example ```rust use atomic_core::output::repo::OutputOutcome; let mut outcome = OutputOutcome::new(); assert!(outcome.is_empty()); outcome.record_file("test.rs", 100); assert!(!outcome.is_empty()); ```

(&self)

Source from the content-addressed store, hash-verified

145 /// assert!(!outcome.is_empty());
146 /// ```
147 pub fn is_empty(&self) -> bool {
148 self.files.is_empty() && self.directories.is_empty() && self.skipped.is_empty()
149 }
150
151 /// Get the number of files written.
152 ///

Callers 15

detect_fork_conflictsFunction · 0.45
matches_prefixMethod · 0.45
path_depthMethod · 0.45
has_errorsMethod · 0.45
collect_treeFunction · 0.45
summaryMethod · 0.45
has_conflictsMethod · 0.45
output_file_with_filterFunction · 0.45
output_file_to_bufferFunction · 0.45
output_graph_contentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected