MCPcopy Create free account
hub / github.com/docker/cli / mustParse

Function mustParse

cli/command/container/opts_test.go:77–82  ·  view source on GitHub ↗
(t *testing.T, args string)

Source from the content-addressed store, hash-verified

75}
76
77func mustParse(t *testing.T, args string) (*container.Config, *container.HostConfig, *networktypes.NetworkingConfig) {
78 t.Helper()
79 config, hostConfig, nwConfig, err := parseRun(append(strings.Split(args, " "), "ubuntu", "bash"))
80 assert.NilError(t, err)
81 return config, hostConfig, nwConfig
82}
83
84func TestParseRunLinks(t *testing.T) {
85 tests := []struct {

Callers 8

TestParseRunLinksFunction · 0.85
TestParseRunAttachFunction · 0.85
TestParseWithVolumesFunction · 0.85
TestParseWithMacAddressFunction · 0.85
TestParseWithMemorySwapFunction · 0.85
TestParseHostnameFunction · 0.85

Calls 1

parseRunFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…