Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
107
func
safeClose(t *testing.T, o io.Closer) {
108
if
err := o.Close(); err != nil {
109
t.Error(err)
110
}
111
}
Callers
3
TestCollectSuccessfully
Function · 0.70
TestCollectionFailure
Function · 0.70
TestWrongPath
Function · 0.70
Calls
2
Close
Method · 0.65
Error
Method · 0.65
Tested by
no test coverage detected