(t *testing.T)
| 56 | } |
| 57 | |
| 58 | func 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 | |
| 69 | func TestFdsListen(t *testing.T) { |
| 70 | socketPath, cleanup := tempSocket(t) |
no outgoing calls
no test coverage detected
searching dependent graphs…