Skip to content

[WIP] Add missing test coverage#7

Closed
sean-george-anchor wants to merge 1 commit into
vikstrous:masterfrom
sean-george-anchor:test-coverage
Closed

[WIP] Add missing test coverage#7
sean-george-anchor wants to merge 1 commit into
vikstrous:masterfrom
sean-george-anchor:test-coverage

Conversation

@sean-george-anchor
Copy link
Copy Markdown
Contributor

Remediate all HIGH/MEDIUM/LOW findings from the security audit:

Add 39 tests across 8 files bringing root package from 0% to 49%
coverage. Remaining uncovered code requires a live Temporal server.

Remediate all HIGH/MEDIUM/LOW findings from the security audit:

- Add sync.Mutex to Queue for concurrent map access safety (vikstrous#1)
- Remove hardcoded 10s activity timeout from WithImplementation (vikstrous#2)
- Remove debug fmt.Println leaking workflow IDs (vikstrous#3)
- Add validateName to all constructors, panic on empty names (vikstrous#4)
- Add nil client check in NewFromSDK (vikstrous#5)
- Fix %s to %w for proper error wrapping in replaytest (vikstrous#6)
- Fix "activtity" typo and wrong noun in error messages (vikstrous#7)
- Fix goroutine leak in Worker.Run with done channel pattern (vikstrous#8)
- Change mock stubs from panic to error return (vikstrous#19)

Add 39 tests across 8 files bringing root package from 0% to 49%
coverage. Remaining uncovered code requires a live Temporal server.
@sean-george-anchor
Copy link
Copy Markdown
Contributor Author

this needs cleaning up, but I need to bounce

@sean-george-anchor sean-george-anchor changed the title Add missing test coverage [WIP] Add missing test coverage Feb 19, 2026
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