Documentation
¶
Index ¶
- func Main(m *testing.M, cf func() port.ChildDriver)
- func Run(t *testing.T, pf func() port.ParentDriver)
- func RunTCP(t *testing.T, pf func() port.ParentDriver)
- func RunTCP4(t *testing.T, pf func() port.ParentDriver)
- func RunTCPTransparent(t *testing.T, pf func() port.ParentDriver)
- func RunUDP(t *testing.T, pf func() port.ParentDriver)
- func RunUDP4(t *testing.T, pf func() port.ParentDriver)
- func RunUDPTransparent(t *testing.T, pf func() port.ParentDriver)
- func TLogWriter(t testing.TB, s string) io.Writer
- func TestProto(t *testing.T, proto string, d port.ParentDriver)
- func TestTCPTransparent(t *testing.T, d port.ParentDriver)
- func TestUDPTransparent(t *testing.T, d port.ParentDriver)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTCPTransparent ¶
func RunTCPTransparent(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 TestTCPTransparent ¶
func TestTCPTransparent(t *testing.T, d port.ParentDriver)
func TestUDPTransparent ¶
func TestUDPTransparent(t *testing.T, d port.ParentDriver)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.