MCPcopy
hub / github.com/containerd/containerd / newClient

Function newClient

integration/client/client_test.go:195–204  ·  view source on GitHub ↗
(t testing.TB, address string, opts ...Opt)

Source from the content-addressed store, hash-verified

193}
194
195func newClient(t testing.TB, address string, opts ...Opt) (*Client, error) {
196 if testing.Short() {
197 t.Skip()
198 }
199 if rt := os.Getenv("TEST_RUNTIME"); rt != "" {
200 opts = append(opts, WithDefaultRuntime(rt))
201 }
202 // testutil.RequiresRoot(t) is not needed here (already called in TestMain)
203 return New(address, opts...)
204}
205
206func TestNewClient(t *testing.T) {
207 t.Parallel()

Callers 15

TestImportFunction · 0.85
TestTransferImportFunction · 0.85
TestImageIsUnpackedFunction · 0.85
TestImageUsageFunction · 0.85
TestTransferEchoFunction · 0.85
TestContainerListFunction · 0.85
TestNewContainerFunction · 0.85
TestContainerStartFunction · 0.85
TestContainerOutputFunction · 0.85

Calls 2

WithDefaultRuntimeFunction · 0.85
NewFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…