Skip to content

refactor: use external tests and add t.Parallel()#25

Merged
mpyw merged 1 commit intomainfrom
refactor/external-tests-and-parallel
Dec 31, 2025
Merged

refactor: use external tests and add t.Parallel()#25
mpyw merged 1 commit intomainfrom
refactor/external-tests-and-parallel

Conversation

@mpyw
Copy link
Owner

@mpyw mpyw commented Dec 31, 2025

Summary

  • Convert internal tests to external test packages (foo_test format)
  • Add t.Parallel() to enable parallel test execution
  • Create export_test.go files to expose unexported functions for testing

Files Changed

  • internal/probe/composite_test.go
  • internal/directive/carrier/carrier_test.go

Test plan

  • go test ./... passes locally
  • CI passes

🤖 Generated with Claude Code

- Convert internal tests to external test packages (foo_test)
- Add t.Parallel() to enable parallel test execution
- Create export_test.go files for unexported functions

Files changed:
- internal/probe/composite_test.go
- internal/directive/carrier/carrier_test.go

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.25%. Comparing base (1869c98) to head (1934652).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   84.25%   84.25%           
=======================================
  Files          24       24           
  Lines        1842     1842           
=======================================
  Hits         1552     1552           
  Misses        173      173           
  Partials      117      117           
Flag Coverage Δ
unittests 84.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mpyw mpyw merged commit 66b7333 into main Dec 31, 2025
14 checks passed
@mpyw mpyw deleted the refactor/external-tests-and-parallel branch December 31, 2025 21:20
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