()
| 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() { |
nothing calls this directly
no test coverage detected