MCPcopy Create free account
hub / github.com/containerd/nerdctl / TestDefaultNetworkCreation

Function TestDefaultNetworkCreation

pkg/netutil/netutil_linux_test.go:27–34  ·  view source on GitHub ↗

Tests whether nerdctl properly creates the default network when required. On Linux, the default driver used will be "bridge". (netutil.DefaultNetworkName)

(t *testing.T)

Source from the content-addressed store, hash-verified

25// Tests whether nerdctl properly creates the default network when required.
26// On Linux, the default driver used will be "bridge". (netutil.DefaultNetworkName)
27func TestDefaultNetworkCreation(t *testing.T) {
28 if rootlessutil.IsRootless() {
29 t.Skip("must be superuser to create default network for this test")
30 }
31
32 testDefaultNetworkCreation(t)
33 testDefaultNetworkCreationWithBridgeIP(t)
34}

Callers

nothing calls this directly

Calls 4

IsRootlessFunction · 0.92
SkipMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…