()
| 1159 | |
| 1160 | #[test] |
| 1161 | fn test_store_clear() { |
| 1162 | let (_dir, store) = make_store(); |
| 1163 | |
| 1164 | store.save(&make_session()).unwrap(); |
| 1165 | assert!(store.load("sess-abc-123").unwrap().is_some()); |
| 1166 | |
| 1167 | store.clear("sess-abc-123").unwrap(); |
| 1168 | assert!(store.load("sess-abc-123").unwrap().is_none()); |
| 1169 | } |
| 1170 | |
| 1171 | #[test] |
| 1172 | fn test_store_clear_nonexistent_is_ok() { |
nothing calls this directly
no test coverage detected