testutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testutil contains some helpers for testing PPP and PPPoE connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPrivilegeForContainerTests

func CheckPrivilegeForContainerTests() error

CheckPrivilegeForContainerTests returns nil if Docker and raw socket based tests can be run.

func StartServer

func StartServer() (func(), error)

StartServer runs a PPP+PPPoE server in a Docker container. It returns a closer function (which should be defer-ed), or an error if server startup fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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