Skip to content

test(nginxtopo): cover the uncovered branches back to 100 percent, add the promote/verify coverage floor - #920

Merged
acamarata merged 1 commit into
mainfrom
job/h01-cli-coverage
Oct 29, 2026
Merged

acamarata merged 1 commit into
mainfrom
job/h01-cli-coverage

Conversation

@acamarata

Copy link
Copy Markdown
Collaborator

Coverage workflow was red on main: internal/nginxtopo 87.0 percent against a 98 percent floor. Table-driven tests bring it to 100.0 percent; the floor is unchanged; promote/verify gets a generated floor of 91 (measured 93.98).

@acamarata

Copy link
Copy Markdown
Collaborator Author

Rebased onto origin/main to resolve the conflict in internal/nginxtopo/served_test.go and .github/coverage-floors.txt. Main already added TestSharedOwnerRegistered and a higher verify floor (92), so both stay as on main. This PR now adds the 'empty project' ServedDirs case and TestSharedOwnerRegistered_Layouts (missing, registered, non-directory nginx path). go test ./internal/nginxtopo passes at 100%.

@acamarata
acamarata force-pushed the job/h01-cli-coverage branch from 33120ab to d67235c Compare October 29, 2026 16:23
@acamarata
acamarata merged commit 6356a93 into main Oct 29, 2026
30 of 36 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