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

Function test_workspace_zombies

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

Source from the content-addressed store, hash-verified

1042
1043 #[test]
1044 fn test_workspace_zombies() {
1045 let mut workspace = Workspace::new();
1046 let node = GraphNode::new(
1047 NodeId::new(1),
1048 ChangePosition::new(0),
1049 ChangePosition::new(10),
1050 );
1051
1052 assert!(!workspace.has_zombies());
1053
1054 workspace.add_zombie_vertex(node);
1055
1056 assert!(workspace.has_zombies());
1057 assert_eq!(workspace.zombies().len(), 1);
1058 }
1059
1060 #[test]
1061 fn test_workspace_has_conflicts() {

Callers

nothing calls this directly

Calls 1

add_zombie_vertexMethod · 0.45

Tested by

no test coverage detected