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

Function TestBuildLogsURL_TruncatesLongAppID

internal/desktop/client_test.go:62–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestBuildLogsURL_TruncatesLongAppID(t *testing.T) {
63 long := strings.Repeat("a", LogsAppIDMaxLen+50)
64 got := BuildLogsURL(long)
65 want := "docker-desktop://dashboard/logs?appId=" + strings.Repeat("a", LogsAppIDMaxLen)
66 assert.Equal(t, got, want)
67}
68
69func TestClientPing(t *testing.T) {
70 if testing.Short() {

Callers

nothing calls this directly

Calls 1

BuildLogsURLFunction · 0.85

Tested by

no test coverage detected