From 97d2246375d7e9c27377f77cc632eedca9cf9c76 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Thu, 7 May 2026 12:31:55 +0300 Subject: [PATCH] drop orphan testTypography helper from render tests The TestUserBlockHighlightsFileTokens test was rewritten to call HighlightFileTokens directly (UserBlock was deleted in the dead-code sweep). That left testTypography with no callers, so staticcheck U1000 flagged it. --- internal/ui/render/blocks_test.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/internal/ui/render/blocks_test.go b/internal/ui/render/blocks_test.go index 60b9de9c..b2560343 100644 --- a/internal/ui/render/blocks_test.go +++ b/internal/ui/render/blocks_test.go @@ -4,30 +4,9 @@ import ( "strings" "testing" - "github.com/indaco/herald" - "github.com/mark3labs/kit/internal/ui/style" ) -// testTypography creates a herald Typography for tests. -func testTypography(theme style.Theme) *herald.Typography { - return herald.New( - herald.WithPalette(herald.ColorPalette{ - Primary: theme.Primary, - Secondary: theme.Secondary, - Tertiary: theme.Info, - Accent: theme.Accent, - Highlight: theme.Highlight, - Muted: theme.Muted, - Text: theme.Text, - Surface: theme.Background, - Base: theme.CodeBg, - }), - herald.WithAlertLabel(herald.AlertTip, ""), - herald.WithAlertIcon(herald.AlertTip, ""), - ) -} - func TestHighlightFileTokens(t *testing.T) { theme := style.DefaultTheme()