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

Function test_memory_clear

atomic-core/src/output/memory.rs:746–754  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

744
745 #[test]
746 fn test_memory_clear() {
747 let wc = Memory::new();
748 wc.add_file("a.txt", b"");
749 wc.add_file("b.txt", b"");
750 assert_eq!(wc.len(), 2);
751
752 wc.clear();
753 assert!(wc.is_empty());
754 }
755
756 // -------------------------------------------------------------------------
757 // File Operations Tests

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
add_fileMethod · 0.45

Tested by

no test coverage detected