()
| 1008 | |
| 1009 | #[test] |
| 1010 | fn get_task_data() { |
| 1011 | let mut rep = new_replica_in_memory().unwrap(); |
| 1012 | |
| 1013 | let uuid = uuid_v4(); |
| 1014 | assert!(rep.get_task_data(uuid).unwrap().is_none()); |
| 1015 | |
| 1016 | let mut operations = new_operations(); |
| 1017 | create_task(uuid, &mut operations); |
| 1018 | rep.commit_operations(operations).unwrap(); |
| 1019 | |
| 1020 | let mut t = rep.get_task_data(uuid).unwrap(); |
| 1021 | assert!(t.is_some()); |
| 1022 | assert_eq!(t.take().get_uuid(), uuid); |
| 1023 | } |
| 1024 | |
| 1025 | #[test] |
| 1026 | fn get_task_operations() { |
nothing calls this directly
no test coverage detected