()
| 134 | |
| 135 | #[tokio::test] |
| 136 | async fn test_file_store_delete() { |
| 137 | let dir = tempdir().unwrap(); |
| 138 | let store = FileSessionStore::new(dir.path()).await.unwrap(); |
| 139 | |
| 140 | let session = create_test_session_data(); |
| 141 | store.save(&session).await.unwrap(); |
| 142 | |
| 143 | // Verify exists |
| 144 | assert!(store.exists(&session.id).await.unwrap()); |
| 145 | |
| 146 | // Delete |
| 147 | store.delete(&session.id).await.unwrap(); |
| 148 | |
| 149 | // Verify gone |
| 150 | assert!(!store.exists(&session.id).await.unwrap()); |
| 151 | assert!(store.load(&session.id).await.unwrap().is_none()); |
| 152 | } |
| 153 | |
| 154 | #[tokio::test] |
| 155 | async fn test_file_store_save_and_load_artifacts() { |
nothing calls this directly
no test coverage detected