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

Method fmt

atomic-repository/src/record/assemble.rs:131–158  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

129
130impl fmt::Display for RecordStats {
131 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
132 // Basic stats
133 write!(
134 f,
135 "{} file(s), {} graph_op(s), +{} vertices, ~{} edges, {} bytes",
136 self.files_recorded,
137 self.hunks_created,
138 self.vertices_added,
139 self.edges_modified,
140 self.content_bytes
141 )?;
142
143 // CRDT token-level stats if available
144 if self.has_crdt_stats() {
145 write!(
146 f,
147 " | +{} -{} ~{} lines, +{} -{} ~{} tokens",
148 self.lines_added,
149 self.lines_deleted,
150 self.lines_modified,
151 self.tokens_added,
152 self.tokens_deleted,
153 self.tokens_replaced
154 )?;
155 }
156
157 Ok(())
158 }
159}
160
161// RESULT

Callers

nothing calls this directly

Calls 1

has_crdt_statsMethod · 0.80

Tested by

no test coverage detected