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

Function temp_db

crates/learnerd/tests/cli.rs:16–20  ·  view source on GitHub ↗

Helper to get a temporary database path

()

Source from the content-addressed store, hash-verified

14
15// Helper to get a temporary database path
16fn temp_db() -> (tempfile::TempDir, PathBuf) {
17 let dir = tempdir().unwrap();
18 let db_path = dir.path().join("test.db");
19 (dir, db_path)
20}
21
22#[ignore]
23#[test]

Callers 2

test_init_and_cleanFunction · 0.85

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected