MCPcopy
hub / github.com/docker/compose / TestOSC8Link_URLAsDisplayText

Function TestOSC8Link_URLAsDisplayText

cmd/formatter/ansi_test.go:42–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func TestOSC8Link_URLAsDisplayText(t *testing.T) {
43 disableAnsi = false
44 t.Cleanup(func() { disableAnsi = false })
45
46 url := "docker-desktop://dashboard/logs"
47 got := OSC8Link(url, url)
48 want := "\x1b]8;;docker-desktop://dashboard/logs\x1b\\\x1b[4mdocker-desktop://dashboard/logs\x1b[24m\x1b]8;;\x1b\\"
49 assert.Equal(t, got, want)
50}

Callers

nothing calls this directly

Calls 1

OSC8LinkFunction · 0.85

Tested by

no test coverage detected