MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / get_task_data

Function get_task_data

src/taskchampion-cpp/src/lib.rs:1010–1023  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

new_replica_in_memoryFunction · 0.85
uuid_v4Function · 0.85
new_operationsFunction · 0.85
create_taskFunction · 0.85
commit_operationsMethod · 0.80
get_task_dataMethod · 0.80

Tested by

no test coverage detected