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

Function AgentSocketPath

testutil/unixsocket.go:44–49  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

42}
43
44func AgentSocketPath(t testing.TB) string {
45 if runtime.GOOS == "windows" {
46 return fmt.Sprintf(`\\.\pipe\com.coder.agentsocket_test.%s.%s`, t.Name(), rand.Text())
47 }
48 return filepath.Join(TempDirUnixSocket(t), "test.sock")
49}

Callers 8

TestWorkspaceAgentFunction · 0.92
TestExpMcpReporterFunction · 0.92
setupSocketServerFunction · 0.92
TestReinitializeAgentFunction · 0.92
TestServerFunction · 0.92
NewFunction · 0.92

Calls 3

TempDirUnixSocketFunction · 0.85
NameMethod · 0.65
TextMethod · 0.45

Tested by 7

TestWorkspaceAgentFunction · 0.74
TestExpMcpReporterFunction · 0.74
setupSocketServerFunction · 0.74
TestReinitializeAgentFunction · 0.74
TestServerFunction · 0.74