Skip to content

test(log): add comprehensive Logger type method tests#23

Merged
taigrr merged 1 commit into
masterfrom
cd/logger-tests
Mar 8, 2026
Merged

test(log): add comprehensive Logger type method tests#23
taigrr merged 1 commit into
masterfrom
cd/logger-tests

Conversation

@taigrr
Copy link
Copy Markdown
Owner

@taigrr taigrr commented Mar 8, 2026

Changes

  • Added log/logger_test.go with tests for all Logger type methods
  • Covers: Trace/f/ln, Debug/f/ln, Info/f/ln, Notice/f/ln, Warn/f/ln, Error/f/ln, Panic/f/ln, Print/f/ln
  • Tests Default() constructor, SetInfoDepth, and panic-with-error behavior
  • Previously these methods had near-zero direct test coverage

Testing

go test -race ./...

All tests pass. No conflicts with PR #22 (ws/browser tests).

Tests all Logger methods: Trace/f/ln, Debug/f/ln, Info/f/ln,
Notice/f/ln, Warn/f/ln, Error/f/ln, Panic/f/ln, Print/f/ln,
Default(), SetInfoDepth, and panic-with-error behavior.

Previously these methods had near-zero direct test coverage.
@taigrr taigrr merged commit 2375c6c into master Mar 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant