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

Function TestSubscribeRelativePathsIgnored

agent/agentgit/agentgit_test.go:95–103  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestSubscribeRelativePathsIgnored(t *testing.T) {
96 t.Parallel()
97
98 logger := slogtest.Make(t, nil)
99 h := agentgit.NewHandler(logger)
100
101 added := h.Subscribe([]string{"relative/path.go"})
102 require.False(t, added, "relative paths should be ignored")
103}
104
105func TestSubscribeEmptyPaths(t *testing.T) {
106 t.Parallel()

Callers

nothing calls this directly

Calls 2

SubscribeMethod · 0.95
NewHandlerFunction · 0.92

Tested by

no test coverage detected