MCPcopy Create free account
hub / github.com/DataDog/datadog-agent / Command

Method Command

pkg/security/tests/cmdwrapper.go:55–60  ·  view source on GitHub ↗
(bin string, args []string, envs []string)

Source from the content-addressed store, hash-verified

53}
54
55func (s *stdCmdWrapper) Command(bin string, args []string, envs []string) *exec.Cmd {
56 cmd := exec.Command(bin, args...)
57 cmd.Env = envs
58
59 return cmd
60}
61
62func (s *stdCmdWrapper) Run(t *testing.T, name string, fnc func(t *testing.T, kind wrapperType, cmd func(bin string, args []string, envs []string) *exec.Cmd)) {
63 t.Run(name, func(t *testing.T) {

Callers 15

openFunction · 0.45
TestConfigHostnameFunction · 0.45
acquireHostnameFallbackFunction · 0.45
mainFunction · 0.45
GenerateContentFunction · 0.45
mainFunction · 0.45
writeFileAndFormatFunction · 0.45
generateStringerFunction · 0.45
SnapshotSELinuxFunction · 0.45
getCommitShaFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestConfigHostnameFunction · 0.36
TestProcessContextFunction · 0.36
TestProcessEnvsWithValueFunction · 0.36
TestProcessExecCTimeFunction · 0.36
TestProcessPIDVariableFunction · 0.36
TestProcessExecFunction · 0.36
TestProcessMetadataFunction · 0.36
TestProcessExecExitFunction · 0.36
TestProcessIsThreadFunction · 0.36
TestProcessExitFunction · 0.36
TestProcessInterpreterFunction · 0.36