• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mindersec / minder / 37534291271
63%

Build:
DEFAULT BRANCH: main
Ran 06 Oct 2026 09:38PM UTC
Jobs 1
Files 365
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2026 09:29PM UTC coverage: 63.21% (+0.3%) from 62.944%
37534291271

push

github

web-flow
Add tests for db adapters (#6828)

* Add tests for db adapters

Add unit tests for database adapter mappers to ensure status conversions work as intended. This increases test coverage in the internal/adapters/db module.

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

* Address review comments on db adapter tests

This commit addresses the review feedback by adding comprehensive bidirectional mapping tests for RemediationStatus and AlertStatus. It also removes unnecessary variable copying in test loops and optimizes switch statements in errors.go.

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

* Add godoc comments to test functions to resolve review threads

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

* Add explicit pass-through tests for DB mappings

This addresses review feedback to ensure that transformations between Go error types and database enum types work seamlessly in both directions without corruption.

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

---------

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

16 of 18 new or added lines in 1 file covered. (88.89%)

22494 of 35586 relevant lines covered (63.21%)

51.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.94
54.78% internal/adapters/db/errors.go
Jobs
ID Job ID Ran Files Coverage
1 37534291271.1 06 Oct 2026 09:38PM UTC 365
63.21
GitHub Action Run
Source Files on build 37534291271
  • Tree
  • List 365
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37534291271
  • 4ee7ec0c on github
  • Prev Build on main (#37385833874)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc