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

Method Cmd

cmd/nerdctl/login/login_linux_test.go:73–86  ·  view source on GitHub ↗
(helpers test.Helpers, host string)

Source from the content-addressed store, hash-verified

71}
72
73func (ag *Client) Cmd(helpers test.Helpers, host string) test.TestableCommand {
74 if ag.configPath == "" {
75 ag.configPath = helpers.T().TempDir()
76 }
77 args := []string{"login"}
78 if !nerdtest.IsDocker() {
79 args = append(args, "--debug-full")
80 }
81 args = append(args, ag.args...)
82 args = append(args, host)
83 cmd := helpers.Command(args...)
84 cmd.Setenv("DOCKER_CONFIG", ag.configPath)
85 return cmd
86}
87
88func TestLoginPersistence(t *testing.T) {
89 nerdtest.Setup()

Callers 15

TestContainerListFunction · 0.45
TestCopyToContainerFunction · 0.45
assertCatHelperFunction · 0.45
TestRunCustomRootfsFunction · 0.45
prepareCustomRootfsFunction · 0.45
TestListProcessContainerFunction · 0.45

Calls 5

IsDockerFunction · 0.92
TempDirMethod · 0.65
TMethod · 0.65
CommandMethod · 0.65
SetenvMethod · 0.65

Tested by

no test coverage detected