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

Function test_turn_changes_file_count_mixed

atomic-agent/src/event.rs:1016–1026  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1014
1015 #[test]
1016 fn test_turn_changes_file_count_mixed() {
1017 let changes = TurnChanges::new()
1018 .with_modified(vec![PathBuf::from("a"), PathBuf::from("b")])
1019 .with_added(vec![PathBuf::from("c")])
1020 .with_deleted(vec![
1021 PathBuf::from("d"),
1022 PathBuf::from("e"),
1023 PathBuf::from("f"),
1024 ]);
1025 assert_eq!(changes.file_count(), 6);
1026 }
1027
1028 #[test]
1029 fn test_turn_changes_merge_empty() {

Callers

nothing calls this directly

Calls 3

with_deletedMethod · 0.80
with_addedMethod · 0.80
with_modifiedMethod · 0.80

Tested by

no test coverage detected