MCPcopy Create free account
hub / github.com/Moosync/Moosync / setup_test_dir

Function setup_test_dir

src-tauri/preferences/src/test.rs:26–30  ·  view source on GitHub ↗

Helper for creating test directories

()

Source from the content-addressed store, hash-verified

24
25// Helper for creating test directories
26fn setup_test_dir() -> PathBuf {
27 let test_dir = temp_dir().join(format!("moosync_test_{}", uuid::Uuid::new_v4()));
28 fs::create_dir_all(&test_dir).expect("Failed to create test directory");
29 test_dir
30}
31
32// Helper for cleaning up test directories
33fn cleanup_test_dir(dir: PathBuf) {

Callers 8

test_preference_initFunction · 0.85
test_save_and_load_arrayFunction · 0.85
test_secure_preferencesFunction · 0.85
test_update_preferencesFunction · 0.85
test_has_keyFunction · 0.85
test_preference_eventsFunction · 0.85
test_remove_preferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected