Skip to content

refactor: replace custom string types with Go built-ins#789

Merged
reuvenharrison merged 5 commits intomainfrom
refactor/remove-custom-string-types
Feb 5, 2026
Merged

refactor: replace custom string types with Go built-ins#789
reuvenharrison merged 5 commits intomainfrom
refactor/remove-custom-string-types

Conversation

@reuvenharrison
Copy link
Collaborator

Summary

  • Replace utils.StringList with []string across the codebase, using stdlib equivalents (slices.Contains, strings.Join, slices.Sort, etc.)
  • Remove utils.StringMap (replaced with map[string]string) and utils.StringPair (only used internally by deleted CartesianProduct)
  • Retain utils.StringSet as Go has no built-in set type; update ToStringList() to return []string and add StringSetFromSlice() helper

Test plan

  • go build ./... passes
  • go vet ./... passes
  • go test ./... passes (all 14 packages)
  • No remaining references to utils.StringList, utils.StringMap, or utils.StringPair

🤖 Generated with Claude Code

reuvenharrison and others added 4 commits February 5, 2026 11:20
…types

Replace custom utils types with Go built-in equivalents:
- StringList -> []string (methods replaced with stdlib: slices.Contains,
  strings.Join, etc.)
- StringMap -> map[string]string
- StringPair -> removed (only used internally by deleted CartesianProduct)

StringSet is retained as it provides set-algebraic operations (Minus, Plus,
Intersection) that Go's stdlib doesn't cover. Updated its ToStringList()
to return []string and added StringSetFromSlice() helper.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.48%. Comparing base (82af827) to head (68baece).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
- Coverage   89.49%   89.48%   -0.02%     
==========================================
  Files         249      248       -1     
  Lines       12456    12425      -31     
==========================================
- Hits        11147    11118      -29     
+ Misses        862      861       -1     
+ Partials      447      446       -1     
Flag Coverage Δ
unittests 89.48% <100.00%> (-0.02%) ⬇️

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.

@reuvenharrison reuvenharrison merged commit 18d2147 into main Feb 5, 2026
14 checks passed
@reuvenharrison reuvenharrison deleted the refactor/remove-custom-string-types branch February 5, 2026 09: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.

2 participants