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

Function test_stats_total_operations

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

Source from the content-addressed store, hash-verified

841
842 #[test]
843 fn test_stats_total_operations() {
844 let mut stats = ApplyStats::new();
845
846 stats.add_trunk_created();
847 stats.add_branch_inserted();
848 stats.add_leaf_inserted();
849
850 assert_eq!(stats.total_operations(), 3);
851 assert!(stats.has_operations());
852 }
853
854 #[test]
855 fn test_stats_content_bytes() {

Callers

nothing calls this directly

Calls 3

add_trunk_createdMethod · 0.80
add_branch_insertedMethod · 0.80
add_leaf_insertedMethod · 0.80

Tested by

no test coverage detected