MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestMkdir_Command_Linux

Function TestMkdir_Command_Linux

internal/bridge/module_shell_test.go:123–128  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestMkdir_Command_Linux(t *testing.T) {
124 cmd := mkdirCommand("Linux", &implantpb.Request{Args: []string{"/tmp/test"}})
125 if !strings.Contains(cmd, "mkdir -p") {
126 t.Errorf("Linux mkdir: got %q", cmd)
127 }
128}
129
130func TestRm_Command_Linux(t *testing.T) {
131 cmd := rmCommand("Linux", &implantpb.Request{Args: []string{"/tmp/test"}})

Callers

nothing calls this directly

Calls 1

mkdirCommandFunction · 0.85

Tested by

no test coverage detected