MCPcopy Index your code
hub / github.com/coder/coder / NetworkingLoopback

Struct NetworkingLoopback

tailnet/test/integration/network.go:87–87  ·  view source on GitHub ↗

NetworkingLoopback creates a network namespace with a loopback interface for all tests to share. This is the simplest networking setup. The network namespace only exists for isolation on the host and doesn't serve any routing purpose.

Source from the content-addressed store, hash-verified

85// namespace only exists for isolation on the host and doesn't serve any routing
86// purpose.
87type NetworkingLoopback struct{}
88
89func (NetworkingLoopback) SetupNetworking(t *testing.T, _ slog.Logger) TestNetworking {
90 // Create a single network namespace for all tests so we can have an

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected