()
| 1222 | |
| 1223 | #[test] |
| 1224 | fn test_store_clear() { |
| 1225 | let (_dir, store) = make_store(); |
| 1226 | |
| 1227 | store.save(&make_session()).unwrap(); |
| 1228 | assert!(store.load("sess-abc-123").unwrap().is_some()); |
| 1229 | |
| 1230 | store.clear("sess-abc-123").unwrap(); |
| 1231 | assert!(store.load("sess-abc-123").unwrap().is_none()); |
| 1232 | } |
| 1233 | |
| 1234 | #[test] |
| 1235 | fn test_store_clear_nonexistent_is_ok() { |
nothing calls this directly
no test coverage detected