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

Function test_stats_conflicts

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

Source from the content-addressed store, hash-verified

861
862 #[test]
863 fn test_stats_conflicts() {
864 let mut stats = ApplyStats::new();
865 assert!(!stats.has_conflicts());
866
867 stats.add_conflict();
868 assert!(stats.has_conflicts());
869 assert_eq!(stats.conflicts_detected(), 1);
870 }
871
872 #[test]
873 fn test_stats_skipped() {

Callers

nothing calls this directly

Calls 1

add_conflictMethod · 0.45

Tested by

no test coverage detected