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

Function test_code_stats_new

atomic-core/src/change/attestation.rs:1323–1329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1321
1322 #[test]
1323 fn test_code_stats_new() {
1324 let stats = CodeChangeStats::new(100, 20);
1325 assert_eq!(stats.lines_added, 100);
1326 assert_eq!(stats.lines_removed, 20);
1327 assert_eq!(stats.total(), 120);
1328 assert!(!stats.is_empty());
1329 }
1330
1331 #[test]
1332 fn test_code_stats_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected