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

Function test_stats_branch_operations

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

Source from the content-addressed store, hash-verified

806
807 #[test]
808 fn test_stats_branch_operations() {
809 let mut stats = ApplyStats::new();
810
811 stats.add_branch_inserted();
812 assert_eq!(stats.branches_inserted(), 1);
813
814 stats.add_branch_deleted();
815 assert_eq!(stats.branches_deleted(), 1);
816
817 stats.add_branch_restored();
818 assert_eq!(stats.branches_restored(), 1);
819
820 assert_eq!(stats.total_branch_ops(), 3);
821 }
822
823 #[test]
824 fn test_stats_leaf_operations() {

Callers

nothing calls this directly

Calls 3

add_branch_insertedMethod · 0.80
add_branch_deletedMethod · 0.80
add_branch_restoredMethod · 0.80

Tested by

no test coverage detected