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

Function test_turn_changes_summary_multiple

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

Source from the content-addressed store, hash-verified

1103
1104 #[test]
1105 fn test_turn_changes_summary_multiple() {
1106 let changes = TurnChanges::new()
1107 .with_modified(vec![PathBuf::from("a"), PathBuf::from("b")])
1108 .with_added(vec![PathBuf::from("c")])
1109 .with_deleted(vec![PathBuf::from("d")]);
1110 assert_eq!(
1111 changes.summary(),
1112 "4 files changed (2 modified, 1 added, 1 deleted)"
1113 );
1114 }
1115
1116 #[test]
1117 fn test_turn_changes_summary_only_added() {

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