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

Source from the content-addressed store, hash-verified

1486
1487 #[test]
1488 fn test_turn_changes_summary_multiple() {
1489 let changes = TurnChanges::new()
1490 .with_modified(vec![PathBuf::from("a"), PathBuf::from("b")])
1491 .with_added(vec![PathBuf::from("c")])
1492 .with_deleted(vec![PathBuf::from("d")]);
1493 assert_eq!(
1494 changes.summary(),
1495 "4 files changed (2 modified, 1 added, 1 deleted)"
1496 );
1497 }
1498
1499 #[test]
1500 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