package monitor import "testing" func TestConflictTracker_IncrementAndCount(t *testing.T) { ct := NewConflictTracker() if ct.Count() != 0 { t.Fatalf("initial count should be 0, got %d", ct.Count()) } ct.Increment() ct.Increment() ct.Increment() if ct.Count() != 3 { t.Errorf("expected 3, got %d", ct.Count()) } } func TestConflictTracker_SetCount(t *testing.T) { ct := NewConflictTracker() ct.Increment() ct.SetCount(42) if ct.Count() != 42 { t.Errorf("expected 42 after SetCount, got %d", ct.Count()) } }