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

Method route

libatomic/tests/sandbox_service_test.rs:235–243  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

233
234impl TestLink {
235 fn route(root: &Path) -> Result<Arc<Route>, String> {
236 let root = root.canonicalize().map_err(|e| e.to_string())?;
237 routes()
238 .lock()
239 .unwrap()
240 .get(&root)
241 .cloned()
242 .ok_or_else(|| format!("no route for {}", root.display()))
243 }
244}
245
246fn status_text(status: Status) -> String {

Calls 5

routesFunction · 0.85
canonicalizeMethod · 0.80
lockMethod · 0.80
getMethod · 0.65
unwrapMethod · 0.45

Tested by

no test coverage detected