MCPcopy Create free account
hub / github.com/Autoparallel/learner / test_storage_path_relative

Function test_storage_path_relative

crates/learner/src/database/tests.rs:120–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118#[traced_test]
119#[tokio::test]
120async fn test_storage_path_relative() {
121 let (db, _path, _dir) = setup_test_db().await;
122 let storage_path = "relative/path";
123 db.set_storage_path(storage_path).await.unwrap();
124 assert_eq!(
125 std::env::current_dir().unwrap().join(storage_path).to_str().unwrap(),
126 db.get_storage_path().await.unwrap().to_str().unwrap()
127 );
128 tokio::fs::remove_dir_all("relative").await.unwrap_or(());
129}
130
131#[cfg(unix)]
132#[traced_test]

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.85
set_storage_pathMethod · 0.80

Tested by

no test coverage detected