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

Function unavailable

atomic-repository/src/change_source/watchman.rs:179–190  ·  view source on GitHub ↗
(operation: &str, output: &CommandOutput)

Source from the content-addressed store, hash-verified

177}
178
179fn unavailable(operation: &str, output: &CommandOutput) -> ChangeSourceError {
180 let detail = String::from_utf8_lossy(&output.stderr);
181 ChangeSourceError::Unavailable(format!(
182 "{operation} exited with {}{}",
183 output.status,
184 if detail.trim().is_empty() {
185 String::new()
186 } else {
187 format!(": {}", detail.trim())
188 }
189 ))
190}
191
192#[cfg(test)]
193mod tests {

Callers 11

changesMethod · 0.70
build_versionFunction · 0.50
table_metricFunction · 0.50
current_viewFunction · 0.50
intentsFunction · 0.50
collectFunction · 0.50
invalidMethod · 0.50
collect_fromFunction · 0.50
skill_metadataFunction · 0.50
compact_innerFunction · 0.50
compact_waitingFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected