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

Function TestSharedPlanPathMessage

coderd/x/chatd/chattool/planpath_internal_test.go:116–132  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

114}
115
116func TestSharedPlanPathMessage(t *testing.T) {
117 t.Parallel()
118
119 require.Equal(
120 t,
121 "the plan path /home/coder/plan.md is no longer supported at the home root; use the chat-specific plan path: /home/coder/.coder/plans/PLAN-chat.md",
122 sharedPlanPathMessage(
123 "/home/coder/plan.md",
124 "/home/coder/.coder/plans/PLAN-chat.md",
125 ),
126 )
127 require.Equal(
128 t,
129 "the plan path /home/coder/plan.md could not be verified because the workspace is currently unavailable to resolve the chat-specific plan path, try again shortly",
130 planPathVerificationMessage("/home/coder/plan.md"),
131 )
132}

Callers

nothing calls this directly

Calls 3

sharedPlanPathMessageFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected