(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestErrorCollectorAdd_NilError(t *testing.T) { |
| 87 | collector := NewErrorCollector(false) |
| 88 | |
| 89 | result := collector.Add(nil) |
| 90 | require.NoError(t, result, "Should handle nil error") |
| 91 | assert.Equal(t, 0, collector.Count(), "Should not have errors") |
| 92 | assert.Equal(t, 0, collector.Count(), "Should have zero count") |
| 93 | } |
| 94 | |
| 95 | func TestErrorCollectorError_NoErrors(t *testing.T) { |
| 96 | collector := NewErrorCollector(false) |
nothing calls this directly
no test coverage detected