go/src/net/sendfile_test.go

const newton

const newtonLen

const newtonSHA256

// expectSendfile runs f, and verifies that internal/poll.SendFile successfully handles
// a write to wantConn during f's execution.
//
// On platforms where supportsSendfile is false, expectSendfile runs f but does not
// expect a call to SendFile.
func expectSendfile(t *testing.T, wantConn Conn, f func()) {}

func TestSendfile(t *testing.T) {}

func TestSendfileWithExactLimit(t *testing.T) {}

func TestSendfileWithLimitLargerThanFile(t *testing.T) {}

func TestSendfileWithLargeFile(t *testing.T) {}

func testSendfile(t *testing.T, filePath, fileHash string, size, limit int64) {}

func TestSendfileParts(t *testing.T) {}

func TestSendfileSeeked(t *testing.T) {}

// Test that sendfile doesn't put a pipe into blocking mode.
func TestSendfilePipe(t *testing.T) {}

// Issue 43822: tests that returns EOF when conn write timeout.
func TestSendfileOnWriteTimeoutExceeded(t *testing.T) {}

func BenchmarkSendfileZeroBytes(b *testing.B) {}

func BenchmarkSendFile(b *testing.B) {}

func benchmarkSendFile(b *testing.B, proto string) {}

type sendFileBench

func (bench sendFileBench) benchSendFile(b *testing.B) {}

func createTempFile(tb testing.TB, size int64) *os.File {}

func newRandReader(tb testing.TB) io.Reader {}