- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for fileConn (0.09 sec)
-
src/net/mockserver_test.go
func startTestSocketPeer(t testing.TB, conn Conn, op string, chunkSize, totalSize int) (func(t testing.TB), error) { t.Helper() if runtime.GOOS == "windows" { // TODO(panjf2000): Windows has not yet implemented FileConn, // remove this when it's implemented in https://go.dev/issues/9503. t.Fatalf("startTestSocketPeer is not supported on %s", runtime.GOOS) } f, err := conn.(interface{ File() (*os.File, error) }).File()
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/error_test.go
} f, err := os.CreateTemp("", "go-nettest") if err != nil { t.Fatal(err) } defer os.Remove(f.Name()) defer f.Close() c, err := FileConn(f) if err != nil { if c != nil { t.Errorf("FileConn returned non-nil interface %T(%v) with err != nil", c, c) } if perr := parseCommonError(err); perr != nil { t.Error(perr) } } else { c.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.3K bytes - Viewed (0) -
src/net/sendfile_test.go
b.Fatalf("expected %d copied bytes, but got %d", dataSize, n) } cancel() } func BenchmarkSendFile(b *testing.B) { if runtime.GOOS == "windows" { // TODO(panjf2000): Windows has not yet implemented FileConn, // remove this when it's implemented in https://go.dev/issues/9503. b.Skipf("skipping on %s", runtime.GOOS) } b.Run("file-to-tcp", func(b *testing.B) { benchmarkSendFile(b, "tcp") })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 12.1K bytes - Viewed (0)