()
| 1374 | |
| 1375 | #[test] |
| 1376 | fn test_store_for_repo() { |
| 1377 | let dir = TempDir::new().unwrap(); |
| 1378 | let store = SessionStore::for_repo(dir.path()).unwrap(); |
| 1379 | |
| 1380 | // Should have created .atomic/sessions/ |
| 1381 | assert!(dir.path().join(".atomic").join("sessions").is_dir()); |
| 1382 | |
| 1383 | // Should work for save/load |
| 1384 | store.save(&make_session()).unwrap(); |
| 1385 | let loaded = store.load("sess-abc-123").unwrap(); |
| 1386 | assert!(loaded.is_some()); |
| 1387 | } |
| 1388 | |
| 1389 | // SessionStore: debug |
| 1390 |
nothing calls this directly
no test coverage detected