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

Function test_stats_display

atomic-core/src/crdt/apply/context.rs:900–912  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898
899 #[test]
900 fn test_stats_display() {
901 let mut stats = ApplyStats::new();
902 stats.add_trunk_created();
903 stats.add_trunk_deleted();
904 stats.add_branch_inserted();
905 stats.add_leaf_inserted();
906 stats.add_leaf_replaced();
907
908 let display = stats.to_string();
909 assert!(display.contains("trunks"));
910 assert!(display.contains("branches"));
911 assert!(display.contains("leaves"));
912 }
913
914 #[test]
915 fn test_stats_serde_roundtrip() {

Callers

nothing calls this directly

Calls 5

add_trunk_createdMethod · 0.80
add_trunk_deletedMethod · 0.80
add_branch_insertedMethod · 0.80
add_leaf_insertedMethod · 0.80
add_leaf_replacedMethod · 0.80

Tested by

no test coverage detected