MCPcopy
hub / github.com/cloudflare/tableflip / tempSocket

Function tempSocket

fds_test.go:58–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func tempSocket(t *testing.T) (string, func()) {
59 t.Helper()
60
61 temp, err := ioutil.TempDir("", "tableflip")
62 if err != nil {
63 t.Fatal(err)
64 }
65
66 return filepath.Join(temp, "socket"), func() { os.RemoveAll(temp) }
67}
68
69func TestFdsListen(t *testing.T) {
70 socketPath, cleanup := tempSocket(t)

Callers 6

TestFdsAddListenerFunction · 0.85
TestFdsAddPacketConnFunction · 0.85
TestFdsListenFunction · 0.85
TestFdsRemoveUnixFunction · 0.85
TestFdsConnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…