MCPcopy
hub / github.com/SurgeDM/Surge / TestDebug_FormatsMessage

Function TestDebug_FormatsMessage

internal/utils/debug_test.go:50–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestDebug_FormatsMessage(t *testing.T) {
51 // Test that Debug can handle format strings with arguments
52 // This shouldn't panic
53 utils.Debug("Test message with %s and %d", "string", 42)
54 utils.Debug("Simple message without formatting")
55 utils.Debug("Message with special chars: %% \\n \\t")
56}
57
58func TestDebug_HandlesEmptyMessage(t *testing.T) {
59 // Debug should handle empty messages gracefully

Callers

nothing calls this directly

Calls 1

DebugFunction · 0.92

Tested by

no test coverage detected