testsuite

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(m *testing.M, cf func() port.ChildDriver)

func Run

func Run(t *testing.T, pf func() port.ParentDriver)

func RunTCP

func RunTCP(t *testing.T, pf func() port.ParentDriver)

func RunTCP4

func RunTCP4(t *testing.T, pf func() port.ParentDriver)

func RunTCPTransparent

func RunTCPTransparent(t *testing.T, pf func() port.ParentDriver)

func RunUDP

func RunUDP(t *testing.T, pf func() port.ParentDriver)

func RunUDP4

func RunUDP4(t *testing.T, pf func() port.ParentDriver)

func RunUDPTransparent

func RunUDPTransparent(t *testing.T, pf func() port.ParentDriver)

RunUDPTransparent exercises the source-ip-transparent code path for UDP. UDP does not actually support IP_TRANSPARENT (it falls back to the non-transparent path), so this is also the regression test for rootless-containers/rootlesskit#592: the client connects from a non-loopback address (which previously triggered the broken path) and the test asserts that the echo reply is delivered back to the client. Source IP preservation is intentionally not expected for UDP.

func TLogWriter

func TLogWriter(t testing.TB, s string) io.Writer

func TestProto

func TestProto(t *testing.T, proto string, d port.ParentDriver)

func TestTCPTransparent

func TestTCPTransparent(t *testing.T, d port.ParentDriver)

func TestUDPTransparent

func TestUDPTransparent(t *testing.T, d port.ParentDriver)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL