Files
homarr/tools/homarr-dev/internal/ui/width_probe_test.go
T
Thomas Camlong 7710abcf26 feat(cli): rework developer CLI with non-blocking tasks and GitHub CI checks
Rebuild the developer CLI and interactive TUI from the ground up using
Bubble Tea v2, Lip Gloss v2, and non-blocking background workers. Adds
support for background docker pulls with live per-layer byte progress,
build log streaming, interactive container shells, dynamic sidebar
tabs (logs / build / ci), and gh cli integration to view or watch CI checks.
2026-08-21 15:40:04 +02:00

35 lines
892 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package ui
import (
"testing"
"charm.land/lipgloss/v2"
)
func TestGlyphWidths(t *testing.T) {
glyphs := []string{
"✓", "✗", "●", "–", "◆", "☁", "▶", "○", "⚒", "▤", "█", "░",
// Nerd Font glyphs:
"\uf00c", // nf-fa-check 
"\uf00d", // nf-fa-times 
"\uf444", // nf-oct-dot_fill 
"\uf0c2", // nf-fa-cloud 
"\uf1b2", // nf-fa-cube 
"\uf04b", // nf-fa-play 
"\uf04d", // nf-fa-stop 
"\uf0ad", // nf-fa-wrench 
"\uf1c0", // nf-fa-database 
"\uf407", // nf-oct-git_pull_request 
"\uf120", // nf-fa-terminal 
"\uf007", // nf-fa-user 
"\uf004", // nf-fa-heart 
"\uf09b", // nf-fa-github 
"\uf308", // nf-fa-docker 
"\uf002", // nf-fa-search 
"\uf08e", // nf-fa-external_link 
}
for _, glyph := range glyphs {
t.Logf("%q (%s) width=%d", glyph, glyph, lipgloss.Width(glyph))
}
}