Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add logging and support for custom logger #36

Merged
merged 3 commits into from
Feb 23, 2025
Merged

Conversation

filipowm
Copy link
Owner

No description provided.

Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/filipowm/go-unifi/codegen 88.37% (ø)
github.com/filipowm/go-unifi/unifi 9.73% (+0.90%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/filipowm/go-unifi/codegen/version.go 91.11% (ø) 45 41 4
github.com/filipowm/go-unifi/unifi/api_paths.go 77.27% (-1.67%) 22 (+3) 17 (+2) 5 (+1) 👎
github.com/filipowm/go-unifi/unifi/client.generated.go 0.00% (ø) 0 0 0
github.com/filipowm/go-unifi/unifi/client.go 75.00% (+1.73%) 116 (+15) 87 (+13) 29 (+2) 👍
github.com/filipowm/go-unifi/unifi/logging.go 56.52% (+56.52%) 23 (+23) 13 (+13) 10 (+10) 🌟
github.com/filipowm/go-unifi/unifi/requests.go 86.57% (+0.13%) 67 (+8) 58 (+7) 9 (+1) 👍
github.com/filipowm/go-unifi/unifi/sysinfo.go 84.38% (+0.50%) 32 (+1) 27 (+1) 5 👍
github.com/filipowm/go-unifi/unifi/unifi_errors.go 81.82% (+9.82%) 44 (-6) 36 8 (-6) 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/filipowm/go-unifi/unifi/unifi_test.go

@filipowm filipowm merged commit e79dcb1 into main Feb 23, 2025
11 checks passed
@filipowm filipowm deleted the feat/logging branch February 23, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant