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

Function test_file_diff_stats_new

atomic-cli/src/commands/diff/tests.rs:112–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111 #[test]
112 fn test_file_diff_stats_new() {
113 let stats = FileDiffStats::new("test.rs", 10, 5, 'M');
114 assert_eq!(stats.path, "test.rs");
115 assert_eq!(stats.insertions, 10);
116 assert_eq!(stats.deletions, 5);
117 assert_eq!(stats.status, 'M');
118 }
119
120 #[test]
121 fn test_file_diff_stats_added() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected