(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func 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 | |
| 144 | func TestMv_Command_Linux(t *testing.T) { |
| 145 | cmd := mvCommand("Linux", &implantpb.Request{Args: []string{"/a", "/b"}}) |
nothing calls this directly
no test coverage detected