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

Function test_add_with_files_iterator

atomic-cli/src/commands/add.rs:1105–1109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1103
1104 #[test]
1105 fn test_add_with_files_iterator() {
1106 let files = ["a.rs", "b.rs", "c.rs"];
1107 let add = Add::new().with_files(files.iter().copied());
1108 assert_eq!(add.files.len(), 3);
1109 }
1110
1111 #[test]
1112 fn test_add_recursive_and_no_recursive_conflict() {

Callers

nothing calls this directly

Calls 2

with_filesMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected