func TestSpliceFile(t *testing.T) { … }
func testSpliceFile(t *testing.T, proto string, size, limit int64) { … }
func testSpliceToTTY(t *testing.T, proto string, size int64) { … }
var copyFileTests …
var copyFileHooks …
func testCopyFiles(t *testing.T, size, limit int64) { … }
func testCopyFileRange(t *testing.T, size int64, limit int64) { … }
func testSendfileOverCopyFileRange(t *testing.T, size int64, limit int64) { … }
func newCopyFileRangeTest(t *testing.T, size int64) (dst, src *File, data []byte, hook *copyFileHook, name string) { … }
func newSendfileOverCopyFileRangeTest(t *testing.T, size int64) (dst, src *File, data []byte, hook *copyFileHook, name string) { … }
func newSpliceFileTest(t *testing.T, proto string, size int64) (*File, net.Conn, []byte, *spliceFileHook, func()) { … }
func hookCopyFileRange(t *testing.T) (hook *copyFileHook, name string) { … }
func hookSendFileOverCopyFileRange(t *testing.T) (*copyFileHook, string) { … }
func hookSendFileTB(tb testing.TB) *copyFileHook { … }
func hookSpliceFile(t *testing.T) *spliceFileHook { … }
type spliceFileHook …
func (h *spliceFileHook) install() { … }
func (h *spliceFileHook) uninstall() { … }
func TestProcCopy(t *testing.T) { … }
func TestGetPollFDAndNetwork(t *testing.T) { … }
func testGetPollFDAndNetwork(t *testing.T, proto string) { … }