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

Source from the content-addressed store, hash-verified

1253
1254 #[test]
1255 fn test_add_with_files_iterator() {
1256 let files = ["a.rs", "b.rs", "c.rs"];
1257 let add = Add::new().with_files(files.iter().copied());
1258 assert_eq!(add.files.len(), 3);
1259 }
1260
1261 #[test]
1262 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