test(logging): add unit tests for logging package #126

Closed
opened 2026-07-13 17:24:09 +00:00 by the.auditor · 1 comment
Owner

internal/logging/logging.go has no tests. The logging package will be used across all modules — basic test coverage is warranted.

Should cover:

  • Print/Printf suppressed when quiet=true
  • Print/Printf visible when quiet=false
  • Error/Errorf always visible regardless of quiet
  • NewWithWriter writes to provided writer

Discovered during review of PR #125.

`internal/logging/logging.go` has no tests. The logging package will be used across all modules — basic test coverage is warranted. Should cover: - `Print`/`Printf` suppressed when quiet=true - `Print`/`Printf` visible when quiet=false - `Error`/`Errorf` always visible regardless of quiet - `NewWithWriter` writes to provided writer Discovered during review of PR #125.
Owner

Closing — handled in PR #164. logging_test.go covers Print, Printf, Verbosef, Error, Errorf with quiet/verbose modes.

Closing — handled in PR #164. logging_test.go covers Print, Printf, Verbosef, Error, Errorf with quiet/verbose modes.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/pget#126
No description provided.