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

Function NewBaseWithNamespace

pkg/testutil/testutil.go:673–678  ·  view source on GitHub ↗
(t *testing.T, ns string)

Source from the content-addressed store, hash-verified

671const Namespace = "nerdctl-test"
672
673func NewBaseWithNamespace(t *testing.T, ns string) *Base {
674 if ns == "" || ns == "default" || ns == Namespace {
675 t.Fatalf(`the other base namespace cannot be "%s"`, ns)
676 }
677 return newBase(t, ns, false, false)
678}
679
680func NewBaseWithIPv6Compatible(t *testing.T) *Base {
681 return newBase(t, Namespace, true, false)

Callers 1

TestRunCustomRootfsFunction · 0.92

Calls 1

newBaseFunction · 0.85

Tested by 1

TestRunCustomRootfsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…