MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_workspace_take_pending_edges

Function test_workspace_take_pending_edges

atomic-core/src/apply/workspace.rs:973–982  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

971
972 #[test]
973 fn test_workspace_take_pending_edges() {
974 let mut workspace = Workspace::new();
975 workspace.add_pending_edge(Position::ROOT, Position::ROOT, EdgeFlags::BLOCK);
976 workspace.add_pending_edge(Position::ROOT, Position::ROOT, EdgeFlags::FOLDER);
977
978 let edges = workspace.take_pending_edges();
979
980 assert_eq!(edges.len(), 2);
981 assert_eq!(workspace.pending_edge_count(), 0);
982 }
983
984 #[test]
985 fn test_workspace_deleted_edges() {

Callers

nothing calls this directly

Calls 2

add_pending_edgeMethod · 0.80
take_pending_edgesMethod · 0.80

Tested by

no test coverage detected