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

Function test_list_files

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

Source from the content-addressed store, hash-verified

788
789 #[test]
790 fn test_list_files() {
791 let wc = Memory::new();
792 wc.add_file("a.txt", b"");
793 wc.add_file("b/c.txt", b"");
794 wc.add_directory("empty_dir");
795
796 let files = wc.list_files();
797 assert_eq!(files.len(), 2);
798 assert!(files.contains(&"a.txt".to_string()));
799 assert!(files.contains(&"b/c.txt".to_string()));
800 }
801
802 #[test]
803 fn test_get_inode() {

Callers

nothing calls this directly

Calls 3

list_filesMethod · 0.80
add_fileMethod · 0.45
add_directoryMethod · 0.45

Tested by

no test coverage detected