go-netops/unifi
Snider 38819660ef
All checks were successful
Security Scan / security (pull_request) Successful in 7s
Test / test (pull_request) Successful in 1m38s
fix(unifi): DX audit — fix tests, add missing Commit(), improve coverage
- Fix SaveConfig: add cfg.Commit() so credentials actually persist to disk
- Fix TestResolveConfig and TestNewFromConfig: isolate from real config
  file by setting HOME to temp dir, preventing env/config bleed
- Add RouteTypeName, GetRoutes, and GetNetworks unit tests with httptest
  mocks (coverage 39% → 55%)
- Update CLAUDE.md: add error handling and test isolation conventions
- Update docs: fix Go version (1.25 → 1.26), remove stale replace
  directive references, add cmd/unifi/ to architecture diagram

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 08:44:07 +00:00
..
client.go fix: update stale imports from monorepo extraction 2026-03-16 19:20:34 +00:00
client_test.go feat: extract UniFi network controller package from core/go 2026-02-16 15:21:37 +00:00
clients.go fix: update stale imports from monorepo extraction 2026-03-16 19:20:34 +00:00
config.go fix(unifi): DX audit — fix tests, add missing Commit(), improve coverage 2026-03-17 08:44:07 +00:00
config_test.go fix(unifi): DX audit — fix tests, add missing Commit(), improve coverage 2026-03-17 08:44:07 +00:00
devices.go fix: update stale imports from monorepo extraction 2026-03-16 19:20:34 +00:00
networks.go fix: update stale imports from monorepo extraction 2026-03-16 19:20:34 +00:00
networks_test.go fix(unifi): DX audit — fix tests, add missing Commit(), improve coverage 2026-03-17 08:44:07 +00:00
routes.go fix: update stale imports from monorepo extraction 2026-03-16 19:20:34 +00:00
routes_test.go fix(unifi): DX audit — fix tests, add missing Commit(), improve coverage 2026-03-17 08:44:07 +00:00
sites.go fix: update stale imports from monorepo extraction 2026-03-16 19:20:34 +00:00