MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / TestIconText

Function TestIconText

internal/display/icons_test.go:5–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3import "testing"
4
5func TestIconText(t *testing.T) {
6 t.Parallel()
7
8 if got := IconText("ok", "Connected", true); got != "ok Connected" {
9 t.Fatalf("expected icon-prefixed text, got %q", got)
10 }
11 if got := IconText("ok", "Connected", false); got != "Connected" {
12 t.Fatalf("expected plain text, got %q", got)
13 }
14}

Callers

nothing calls this directly

Calls 1

IconTextFunction · 0.85

Tested by

no test coverage detected