()
| 1311 | |
| 1312 | #[test] |
| 1313 | fn test_store_for_repo() { |
| 1314 | let dir = TempDir::new().unwrap(); |
| 1315 | let store = SessionStore::for_repo(dir.path()).unwrap(); |
| 1316 | |
| 1317 | // Should have created .atomic/sessions/ |
| 1318 | assert!(dir.path().join(".atomic").join("sessions").is_dir()); |
| 1319 | |
| 1320 | // Should work for save/load |
| 1321 | store.save(&make_session()).unwrap(); |
| 1322 | let loaded = store.load("sess-abc-123").unwrap(); |
| 1323 | assert!(loaded.is_some()); |
| 1324 | } |
| 1325 | |
| 1326 | // SessionStore: debug |
| 1327 |
nothing calls this directly
no test coverage detected