()
| 1255 | |
| 1256 | #[test] |
| 1257 | fn test_store_for_repo() { |
| 1258 | let dir = TempDir::new().unwrap(); |
| 1259 | let store = SessionStore::for_repo(dir.path()).unwrap(); |
| 1260 | |
| 1261 | // Should have created .atomic/sessions/ |
| 1262 | assert!(dir.path().join(".atomic").join("sessions").is_dir()); |
| 1263 | |
| 1264 | // Should work for save/load |
| 1265 | store.save(&make_session()).unwrap(); |
| 1266 | let loaded = store.load("sess-abc-123").unwrap(); |
| 1267 | assert!(loaded.is_some()); |
| 1268 | } |
| 1269 | |
| 1270 | // SessionStore: debug |
| 1271 |
nothing calls this directly
no test coverage detected