diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-16 03:54:28 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-16 03:54:28 +0200 |
| commit | 93dfe3798e03e74766b229418cde364a5ef29ae9 (patch) | |
| tree | 4438058be9bee9a9b8682148a1f8417a530fac2f /internal/tmux/status_coverage_test.go | |
| parent | 8d9d903852a2cd28034e00e116a7bfcc14783108 (diff) | |
Replace custom stringsTrim with strings.TrimSpace
Remove duplicate stringsTrim implementations in stats and tmux packages,
replacing all call sites with the standard library strings.TrimSpace.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/tmux/status_coverage_test.go')
| -rw-r--r-- | internal/tmux/status_coverage_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tmux/status_coverage_test.go b/internal/tmux/status_coverage_test.go index 8f7c034..0c76ee6 100644 --- a/internal/tmux/status_coverage_test.go +++ b/internal/tmux/status_coverage_test.go @@ -141,7 +141,7 @@ func TestTruncateStatus(t *testing.T) { } } -// --- stringsTrim --- +// --- strings.TrimSpace --- func TestStringsTrim(t *testing.T) { tests := []struct { @@ -163,9 +163,9 @@ func TestStringsTrim(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - got := stringsTrim(tt.s) + got := strings.TrimSpace(tt.s) if got != tt.want { - t.Errorf("stringsTrim(%q) = %q, want %q", tt.s, got, tt.want) + t.Errorf("strings.TrimSpace(%q) = %q, want %q", tt.s, got, tt.want) } }) } |
