()
| 2099 | |
| 2100 | #[test] |
| 2101 | fn test_store_clear() { |
| 2102 | let (_dir, store) = make_store(); |
| 2103 | |
| 2104 | store.save(&make_session()).unwrap(); |
| 2105 | assert!(store.load("sess-abc-123").unwrap().is_some()); |
| 2106 | |
| 2107 | store.clear("sess-abc-123").unwrap(); |
| 2108 | assert!(store.load("sess-abc-123").unwrap().is_none()); |
| 2109 | } |
| 2110 | |
| 2111 | #[test] |
| 2112 | fn test_store_clear_nonexistent_is_ok() { |
nothing calls this directly
no test coverage detected