Skip to content

Improve unit test coverage for utility packages#12

Open
rishavtarway wants to merge 1 commit intoOpenPrinting:masterfrom
rishavtarway:master
Open

Improve unit test coverage for utility packages#12
rishavtarway wants to merge 1 commit intoOpenPrinting:masterfrom
rishavtarway:master

Conversation

@rishavtarway
Copy link
Copy Markdown

This PR adds comprehensive unit tests for two utility files that previously had 0% coverage:

  • localhost.go: Added TestIsLocalhost covering various edge cases and case sensitivity.
  • closer.go: Added TestClosers verifying resource lifecycle (init, add, del, close).

Impact: These additions increase the package statement coverage from 64.1% to 66.8% (+2.7%), providing a more robust foundation for the mDNS discovery logic.

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