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

Function test_diff_stats_clone

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

Source from the content-addressed store, hash-verified

1110
1111 #[test]
1112 fn test_diff_stats_clone() {
1113 let mut stats = DiffStats::new();
1114 stats.add_file(FileDiffStats::new("a.rs", 1, 0, 'M'));
1115 let cloned = stats.clone();
1116 assert_eq!(stats.file_count(), cloned.file_count());
1117 }
1118
1119 #[test]
1120 fn test_diff_output_config_clone() {

Callers

nothing calls this directly

Calls 2

add_fileMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected