MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestError

Function TestError

pkg/utils/logger_test.go:118–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestError(t *testing.T) {
119 output := captureOutput(t, func() {
120 Error("test error message")
121 })
122 assert.Contains(t, output, "test error message")
123 assert.Contains(t, output, "level=error")
124}
125
126func TestErrorf(t *testing.T) {
127 output := captureOutput(t, func() {

Callers

nothing calls this directly

Calls 2

ErrorFunction · 0.85
captureOutputFunction · 0.70

Tested by

no test coverage detected