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

Function get_test_db_path

src-tauri/database/src/test.rs:29–32  ·  view source on GitHub ↗

Helper function to create a unique test DB path

()

Source from the content-addressed store, hash-verified

27
28// Helper function to create a unique test DB path
29fn get_test_db_path() -> PathBuf {
30 let file_name = format!("moosync_test_{}.db", Uuid::new_v4());
31 temp_dir().join(file_name)
32}
33
34// Helper function to clean up DB files
35fn cleanup(db_path: &PathBuf) {

Callers 9

test_insert_songFunction · 0.85
test_update_songFunction · 0.85
test_remove_songsFunction · 0.85
test_playlist_operationsFunction · 0.85
test_album_operationsFunction · 0.85
test_artist_operationsFunction · 0.85
test_searchFunction · 0.85
test_analyticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected