You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We could aim for higher code coverage of 95% for the compass.
Describe the solution you'd like
To achieve it we need to work on hitting all the statements where the error is being caught, and it should help us understand and debug our code in case an unexpected behavior is noticed.
Additional context
core package (overall coverage - 94.75%):
core/asset/patch.go - 89.8%
core/star - no test files
core/tag - few test cases where error handling can be hit.
core/user - mostly seems good, opts can be checked in service.go file for func NewService()
core/validator - 3 error conditions can be hit
internal package (overall coverage 84.41%):
internal/client - no test files for client.go
internal/server/health - 100% coverage
internal/server/v1beta1 - 84.33%
internal/store/elasticsearch - discovery_repository, discovery_search_repository and es.go files need more coverage on error handling.
internal/store/postgres - more coverage for error handling
pkg package (overall coverage 87.88%):
pkg/statsd - has no test files.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We could aim for higher code coverage of 95% for the compass.
Describe the solution you'd like
To achieve it we need to work on hitting all the statements where the error is being caught, and it should help us understand and debug our code in case an unexpected behavior is noticed.
Additional context
core/asset/patch.go
- 89.8%core/star
- no test filescore/tag
- few test cases where error handling can be hit.core/user
- mostly seems good, opts can be checked inservice.go
file for func NewService()core/validator
- 3 error conditions can be hitinternal/client
- no test files for client.gointernal/server/health
- 100% coverageinternal/server/v1beta1
- 84.33%internal/store/elasticsearch
- discovery_repository, discovery_search_repository andes.go
files need more coverage on error handling.internal/store/postgres
- more coverage for error handlingpkg/statsd
- has no test files.The text was updated successfully, but these errors were encountered: