MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / canonicalize_test_dir

Function canonicalize_test_dir

tests/common/mod.rs:230–243  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

228}
229
230fn canonicalize_test_dir(path: &Path) -> PathBuf {
231 fs::create_dir_all(path).unwrap_or_else(|err| {
232 panic!(
233 "failed to create test directory '{}': {err}",
234 path.display()
235 )
236 });
237 path.canonicalize().unwrap_or_else(|err| {
238 panic!(
239 "failed to canonicalize test directory '{}': {err}",
240 path.display()
241 )
242 })
243}
244
245fn canonicalize_test_db_path(path: &Path) -> PathBuf {
246 let parent = path

Callers 2

setMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected