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

Function test_result_add_file

atomic-core/src/output/repo/tree.rs:1235–1243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1233
1234 #[test]
1235 fn test_result_add_file() {
1236 let mut result = TreeCollectResult::new();
1237 let item = TreeItem::file("test.rs", Inode::ROOT, Position::ROOT);
1238
1239 result.add_file(item);
1240
1241 assert_eq!(result.files_count, 1);
1242 assert_eq!(result.total_items(), 1);
1243 }
1244
1245 #[test]
1246 fn test_result_add_directory() {

Callers

nothing calls this directly

Calls 1

add_fileMethod · 0.45

Tested by

no test coverage detected