Skip to content

test: raise internal/ coverage from 77.5% to 93.0% (+53 tests)#306

Merged
mgrzybek merged 1 commit into
mainfrom
feat/better-testing
Jul 13, 2026
Merged

test: raise internal/ coverage from 77.5% to 93.0% (+53 tests)#306
mgrzybek merged 1 commit into
mainfrom
feat/better-testing

Conversation

@mgrzybek

@mgrzybek mgrzybek commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add 53 targeted unit tests closing coverage gaps in internal/controller and internal/openstack, raising statement coverage from 77.5% to 93.0% (115 → 168 tests total).
  • Key additions: PurgeResources orchestration tests (new purge_test.go), Reconcile error-path tests via interceptor.Funcs, otherFinalizer, password-auth scope resolution, malformed JSON/PEM handling, and pagination edge cases.
  • Document the corresponding use cases as new/extended Gherkin scenarios in ROADMAP.md (US1.2, US1.4, US1.5, US2.2/US2.3, US5.3, US7.1/US7.2, US8.5, US12.3/US12.4) and update test counts in README.md.

Test plan

  • go test ./... — 168 tests pass
  • go vet ./... — clean
  • gofmt -l — no diffs
  • Coverage verified via go tool cover -func (77.5% → 93.0%)

Add targeted unit tests for previously untested or partially-covered
branches: PurgeResources orchestration (new purge_test.go), Reconcile
error paths via interceptor.Funcs, otherFinalizer, password auth scope
resolution, malformed JSON/PEM handling, and pagination edge cases.

Document the corresponding use cases as new/extended Gherkin scenarios
in ROADMAP.md and update test counts in README.md.

Signed-off-by: Mathieu Grzybek <mathieu@stackhpc.com>
@mgrzybek
mgrzybek requested a review from a team as a code owner July 13, 2026 15:03
@mgrzybek
mgrzybek merged commit 9a0ab9a into main Jul 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant