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

Function test_unrecord_stats_merge

atomic-repository/src/unrecord.rs:842–857  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840
841 #[test]
842 fn test_unrecord_stats_merge() {
843 let mut stats1 = UnrecordStats::new();
844 stats1.direct_unrecords = 2;
845 stats1.vertices_removed = 10;
846
847 let mut stats2 = UnrecordStats::new();
848 stats2.direct_unrecords = 3;
849 stats2.cascaded_unrecords = 1;
850 stats2.vertices_removed = 5;
851
852 stats1.merge(&stats2);
853
854 assert_eq!(stats1.direct_unrecords, 5);
855 assert_eq!(stats1.cascaded_unrecords, 1);
856 assert_eq!(stats1.vertices_removed, 15);
857 }
858
859 // UnrecordDependencyInfo Tests
860

Callers

nothing calls this directly

Calls 1

mergeMethod · 0.45

Tested by

no test coverage detected