Skip to content

test: increase coverage to 89% with types and amd64 unit tests#24

Merged
kolkov merged 1 commit intomainfrom
test/coverage-80-plus
Mar 2, 2026
Merged

test: increase coverage to 89% with types and amd64 unit tests#24
kolkov merged 1 commit intomainfrom
test/coverage-80-plus

Conversation

@kolkov
Copy link
Contributor

@kolkov kolkov commented Mar 2, 2026

Summary

  • Add unit tests for types package (RuntimeEnvironment, DefaultConvention, type descriptors, constants)
  • Add unit tests for internal/arch/amd64 (align, classifyReturnAMD64, classifyArgumentAMD64, handleReturn with 17 sub-cases)
  • Overall coverage: 75% → 89% (-coverpkg=./...), exceeding 80% target for awesome-go

Test plan

  • go test -v ./types/... — all pass
  • go test -v ./internal/arch/amd64/... — all pass
  • go test -coverpkg=./... ./... — 88.9% total
  • golangci-lint run — 0 issues
  • CI green on all 3 platforms

- types/types_test.go: RuntimeEnvironment, DefaultConvention, type descriptors, constants
- internal/arch/amd64/amd64_test.go: align, classifyReturn, classifyArgument, handleReturn
- Coverage: 75% → 89% (-coverpkg=./...)
@kolkov kolkov merged commit 405e868 into main Mar 2, 2026
8 checks passed
@kolkov kolkov deleted the test/coverage-80-plus branch March 2, 2026 07:31
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