MCPcopy Index your code
hub / github.com/coder/coder / TestBuildWorkspaceLink

Function TestBuildWorkspaceLink

cli/ssh_internal_test.go:64–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestBuildWorkspaceLink(t *testing.T) {
65 t.Parallel()
66
67 serverURL, err := url.Parse(fakeServerURL)
68 require.NoError(t, err)
69
70 workspace := codersdk.Workspace{Name: fakeWorkspaceName, OwnerName: fakeOwnerName}
71 workspaceLink := buildWorkspaceLink(serverURL, workspace)
72
73 assert.Equal(t, workspaceLink.String(), fakeServerURL+"/@"+fakeOwnerName+"/"+fakeWorkspaceName)
74}
75
76func TestCloserStack_Mainline(t *testing.T) {
77 t.Parallel()

Callers

nothing calls this directly

Calls 4

buildWorkspaceLinkFunction · 0.85
ParseMethod · 0.65
EqualMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected