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:1245–1253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1243
1244 #[test]
1245 fn test_result_add_file() {
1246 let mut result = TreeCollectResult::new();
1247 let item = TreeItem::file("test.rs", Inode::ROOT, Position::ROOT);
1248
1249 result.add_file(item);
1250
1251 assert_eq!(result.files_count, 1);
1252 assert_eq!(result.total_items(), 1);
1253 }
1254
1255 #[test]
1256 fn test_result_add_directory() {

Callers

nothing calls this directly

Calls 1

add_fileMethod · 0.45

Tested by

no test coverage detected