Skip to content

feat: use testing tb#16

Merged
franklinkim merged 4 commits intomainfrom
feature/use-testing-tb
Mar 23, 2026
Merged

feat: use testing tb#16
franklinkim merged 4 commits intomainfrom
feature/use-testing-tb

Conversation

@franklinkim
Copy link
Member

Description

Use testing.TB interface instead of *testing.T across the testing package and add string helper functions (FirstToUpper, FirstToLower, Compose) to the strings package.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactoring
  • ⚡ Performance
  • ✅ Tests
  • 🔧 Build/CI

Changes

  • Replace *testing.T with testing.TB in all testing package helper functions, allowing use in both tests and benchmarks
  • Remove custom Taggable interface in favor of stdlib testing.TB
  • Add strings.FirstToUpper and strings.FirstToLower for first-character case conversion
  • Add strings.Compose for chaining multiple string transformation functions

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.

Notes

The switch from *testing.T to testing.TB and the removal of the Taggable interface are breaking changes for any consumers that reference these types directly. However, all existing call sites passing *testing.T will continue to work since *testing.T implements testing.TB.

@franklinkim franklinkim merged commit 732eb08 into main Mar 23, 2026
4 checks passed
@franklinkim franklinkim deleted the feature/use-testing-tb branch March 23, 2026 05:22
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