MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / fmt_tree_node

Function fmt_tree_node

crates/cli/src/subcommands/delete.rs:136–146  ·  view source on GitHub ↗
(node: &DatabaseTreeNode)

Source from the content-addressed store, hash-verified

134}
135
136fn fmt_tree_node(node: &DatabaseTreeNode) -> String {
137 format!(
138 "{}{}",
139 node.database_identity,
140 if node.database_names.is_empty() {
141 <_>::default()
142 } else {
143 format!(": {}", node.database_names.iter().join(", "))
144 }
145 )
146}
147
148#[cfg(test)]
149mod tests {

Callers 1

as_termtreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…