MCPcopy Create free account
hub / github.com/github/gh-aw / TestErrorCollectorAdd_NilError

Function TestErrorCollectorAdd_NilError

pkg/workflow/error_aggregation_test.go:86–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func 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
95func TestErrorCollectorError_NoErrors(t *testing.T) {
96 collector := NewErrorCollector(false)

Callers

nothing calls this directly

Calls 3

AddMethod · 0.95
CountMethod · 0.95
NewErrorCollectorFunction · 0.85

Tested by

no test coverage detected