internal

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Blue    = lipgloss.Color("#0000FF")
	BlueBg  = lipgloss.NewStyle().Background(Blue)
	BlueFg  = lipgloss.NewStyle().Foreground(Blue)
	Green   = lipgloss.Color("#00FF00")
	GreenBg = lipgloss.NewStyle().Background(Green)
	GreenFg = lipgloss.NewStyle().Foreground(Green)
	Red     = lipgloss.Color("#FF0000")
	RedBg   = lipgloss.NewStyle().Background(Red)
	RedFg   = lipgloss.NewStyle().Foreground(Red)
)

Test helper colors and styles

Functions

func CmpStr

func CmpStr(t *testing.T, expected, actual string, extra ...string)

CmpStr compares two strings and fails the test if they are not equal

func MakeKeyMsg

func MakeKeyMsg(k rune) tea.KeyPressMsg

MakeKeyMsg creates a tea.KeyPressMsg for the given rune. For uppercase letters, it sets the shift modifier and uses the lowercase code.

func Pad

func Pad(width, height int, lines []string) string

Pad pads the given lines to the specified width and height

func RunWithTimeout

func RunWithTimeout(t *testing.T, runTest func(t *testing.T), timeout time.Duration)

RunWithTimeout runs a test function with a timeout.

Types

This section is empty.

Directories

Path Synopsis
Package fuzzy provides fuzzy string matching.
Package fuzzy provides fuzzy string matching.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL