MCPcopy Index your code
hub / github.com/coder/envbox / AddCommands

Method AddCommands

xunix/xunixfake/exec.go:36–41  ·  view source on GitHub ↗
(cmds ...*FakeCmd)

Source from the content-addressed store, hash-verified

34}
35
36func (f *FakeExec) AddCommands(cmds ...*FakeCmd) {
37 for _, cmd := range cmds {
38 key := cmdKey(cmd.Argv[0], cmd.Argv[1:]...)
39 f.Commands[key] = cmd
40 }
41}
42
43func (f *FakeExec) AssertCommandsCalled(t *testing.T) {
44 t.Helper()

Callers 1

TestDockerFunction · 0.80

Calls 1

cmdKeyFunction · 0.85

Tested by 1

TestDockerFunction · 0.64