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

Function test_workspace_context_clear

atomic-core/src/apply/insertion.rs:534–544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532
533 #[test]
534 fn test_workspace_context_clear() {
535 let mut workspace = Workspace::new();
536 let change = NodeId::new(42);
537 let p1 = make_internal_position(change, 10);
538
539 workspace.add_up_context(p1);
540 assert_eq!(workspace.up_context_count(), 1);
541
542 workspace.clear_context();
543 assert_eq!(workspace.up_context_count(), 0);
544 }
545
546 #[test]
547 fn test_workspace_zombie_tracking() {

Callers

nothing calls this directly

Calls 3

add_up_contextMethod · 0.80
clear_contextMethod · 0.80
make_internal_positionFunction · 0.70

Tested by

no test coverage detected