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

Function TestRejectSharedPlanPath

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

Source from the content-addressed store, hash-verified

92}
93
94func TestRejectSharedPlanPath(t *testing.T) {
95 t.Parallel()
96
97 resp, rejected := rejectSharedPlanPath(
98 LegacySharedPlanPath,
99 "/Users/dev",
100 "/Users/dev/.coder/plans/PLAN-chat.md",
101 nil,
102 )
103
104 require.True(t, rejected)
105 require.True(t, resp.IsError)
106 require.Equal(
107 t,
108 sharedPlanPathMessage(
109 LegacySharedPlanPath,
110 "/Users/dev/.coder/plans/PLAN-chat.md",
111 ),
112 resp.Content,
113 )
114}
115
116func TestSharedPlanPathMessage(t *testing.T) {
117 t.Parallel()

Callers

nothing calls this directly

Calls 3

rejectSharedPlanPathFunction · 0.85
sharedPlanPathMessageFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected