go/src/os/writeto_linux_test.go

func TestSendFile(t *testing.T) {}

func testSendFile(t *testing.T, proto string, size int64) {}

// newSendFileTest initializes a new test for sendfile.
//
// It creates source file and destination sockets, and populates the source file
// with random data of the specified size. It also hooks package os' call
// to poll.Sendfile and returns the hook so it can be inspected.
func newSendFileTest(t *testing.T, proto string, size int64) (net.Conn, *File, net.Conn, []byte, *sendFileHook) {}

func hookSendFile(t *testing.T) *sendFileHook {}

type sendFileHook