()
| 1103 | |
| 1104 | #[test] |
| 1105 | fn test_store_clear() { |
| 1106 | let (_dir, store) = make_store(); |
| 1107 | |
| 1108 | store.save(&make_session()).unwrap(); |
| 1109 | assert!(store.load("sess-abc-123").unwrap().is_some()); |
| 1110 | |
| 1111 | store.clear("sess-abc-123").unwrap(); |
| 1112 | assert!(store.load("sess-abc-123").unwrap().is_none()); |
| 1113 | } |
| 1114 | |
| 1115 | #[test] |
| 1116 | fn test_store_clear_nonexistent_is_ok() { |
nothing calls this directly
no test coverage detected