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

Method fmt

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

has_crdt_statsMethod · 0.80

Tested by

no test coverage detected