tests - improve coverage #93

Closed
opened 2026-03-28 04:21:11 +00:00 by mfreeman451 · 1 comment
Owner

Imported from GitHub.

Original GitHub issue: #255
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/255
Original created: 2025-02-27T02:34:29Z


We need more tests and better coverage, I'm a big fan of lets aim for 100% coverage if possible. We are using the mockgen system maintained by Uber, we should be testing interfaces and not concrete implementations and mock everything. There are packages that don't have any interfaces yet and will need to be updated. Check out some of the existing interfaces.go in various packages to see how to do the mockgen stuff.

  • Agent
  • Checker
  • Cloud - Server
  • Cloud - API
  • Config
  • DB
  • GRPC
  • HTTP
  • lifecycle
  • metrics
  • models
  • monitoring
  • poller
  • scan
  • sweeper
Imported from GitHub. Original GitHub issue: #255 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/255 Original created: 2025-02-27T02:34:29Z --- We need more tests and better coverage, I'm a big fan of lets aim for 100% coverage if possible. We are using the `mockgen` system maintained by Uber, we should be testing interfaces and not concrete implementations and mock everything. There are packages that don't have any interfaces yet and will need to be updated. Check out some of the existing `interfaces.go` in various packages to see how to do the `mockgen` stuff. - [ ] Agent - [ ] Checker - [ ] Cloud - Server - [ ] Cloud - API - [ ] Config - [ ] DB - [ ] GRPC - [ ] HTTP - [ ] lifecycle - [ ] metrics - [ ] models - [ ] monitoring - [ ] poller - [ ] scan - [ ] sweeper
Author
Owner

Imported GitHub comment.

Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/255#issuecomment-3813967885
Original created: 2026-01-28T21:14:22Z


closing, stale

Imported GitHub comment. Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/255#issuecomment-3813967885 Original created: 2026-01-28T21:14:22Z --- closing, stale
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
carverauto/serviceradar#93
No description provided.