()
| 2092 | |
| 2093 | #[test] |
| 2094 | fn test_store_clear() { |
| 2095 | let (_dir, store) = make_store(); |
| 2096 | |
| 2097 | store.save(&make_session()).unwrap(); |
| 2098 | assert!(store.load("sess-abc-123").unwrap().is_some()); |
| 2099 | |
| 2100 | store.clear("sess-abc-123").unwrap(); |
| 2101 | assert!(store.load("sess-abc-123").unwrap().is_none()); |
| 2102 | } |
| 2103 | |
| 2104 | #[test] |
| 2105 | fn test_store_clear_nonexistent_is_ok() { |
nothing calls this directly
no test coverage detected