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

Function TestCp_Command_Linux

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

Source from the content-addressed store, hash-verified

135}
136
137func TestCp_Command_Linux(t *testing.T) {
138 cmd := cpCommand("Linux", &implantpb.Request{Args: []string{"/a", "/b"}})
139 if !strings.Contains(cmd, `cp -r "/a" "/b"`) {
140 t.Errorf("Linux cp: got %q", cmd)
141 }
142}
143
144func TestMv_Command_Linux(t *testing.T) {
145 cmd := mvCommand("Linux", &implantpb.Request{Args: []string{"/a", "/b"}})

Callers

nothing calls this directly

Calls 1

cpCommandFunction · 0.85

Tested by

no test coverage detected