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

Function test_add_with_files_vec

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

Source from the content-addressed store, hash-verified

583
584 #[test]
585 fn test_add_with_files_vec() {
586 let add = Add::new().with_files(vec!["src/main.rs", "src/lib.rs"]);
587 assert_eq!(add.files.len(), 2);
588 assert_eq!(add.files[0], "src/main.rs");
589 assert_eq!(add.files[1], "src/lib.rs");
590 }
591
592 #[test]
593 fn test_add_with_files_strings() {

Callers

nothing calls this directly

Calls 1

with_filesMethod · 0.45

Tested by

no test coverage detected