MCPcopy
hub / github.com/IBM/sarama / safeClose

Function safeClose

examples/http_server/http_server_test.go:107–111  ·  view source on GitHub ↗
(t *testing.T, o io.Closer)

Source from the content-addressed store, hash-verified

105}
106
107func safeClose(t *testing.T, o io.Closer) {
108 if err := o.Close(); err != nil {
109 t.Error(err)
110 }
111}

Callers 3

TestCollectSuccessfullyFunction · 0.70
TestCollectionFailureFunction · 0.70
TestWrongPathFunction · 0.70

Calls 2

CloseMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected