- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testUnixAddr (0.19 sec)
-
src/net/unixsock_windows_test.go
func TestUnixConnLocalWindows(t *testing.T) { if !windows.SupportUnixSocket() { t.Skip("unix test") } handler := func(ls *localServer, ln Listener) {} for _, laddr := range []string{"", testUnixAddr(t)} { laddr := laddr taddr := testUnixAddr(t) ta, err := ResolveUnixAddr("unix", taddr) if err != nil { t.Fatal(err) } ln, err := ListenUnix("unix", ta) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:24:57 UTC 2024 - 1.8K bytes - Viewed (0) -
src/net/mockserver_test.go
import ( "context" "errors" "fmt" "internal/testenv" "log" "os" "path/filepath" "runtime" "strconv" "sync" "testing" "time" ) // testUnixAddr uses os.MkdirTemp to get a name that is unique. func testUnixAddr(t testing.TB) string { // Pass an empty pattern to get a directory name that is as short as possible. // If we end up with a name longer than the sun_path field in the sockaddr_un
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 13.3K bytes - Viewed (0) -
src/net/splice_linux_test.go
t.Fatalf("got err = %v, handled = %t, want nil error, handled == false", err, handled) } } func testSpliceNoUnixgram(t *testing.T) { addr, err := ResolveUnixAddr("unixgram", testUnixAddr(t)) if err != nil { t.Fatal(err) } defer os.Remove(addr.Name) up, err := ListenUnixgram("unixgram", addr) if err != nil { t.Fatal(err) } defer up.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 14.5K bytes - Viewed (0)