MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / TestLoggerAdapter_Methods

Function TestLoggerAdapter_Methods

internal/adapters/adapters_test.go:149–164  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func TestLoggerAdapter_Methods(t *testing.T) {
150 adapter := NewSimpleLoggerAdapter(true)
151
152 // Test that all methods exist and can be called
153 assert.NotPanics(t, func() {
154 adapter.Debug("Debug: %s %d", "test", 123)
155 })
156
157 assert.NotPanics(t, func() {
158 adapter.Info("Info: %s %d", "test", 456)
159 })
160
161 assert.NotPanics(t, func() {
162 adapter.Error("Error: %s %d", "test", 789)
163 })
164}
165
166func TestNewCacheAdapter(t *testing.T) {
167 adapter := NewCacheAdapter()

Callers

nothing calls this directly

Calls 4

NewSimpleLoggerAdapterFunction · 0.85
DebugMethod · 0.65
InfoMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected