(t *testing.T)
| 128 | } |
| 129 | |
| 130 | func TestRm_Command_Linux(t *testing.T) { |
| 131 | cmd := rmCommand("Linux", &implantpb.Request{Args: []string{"/tmp/test"}}) |
| 132 | if !strings.Contains(cmd, "rm -rf") { |
| 133 | t.Errorf("Linux rm: got %q", cmd) |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func TestCp_Command_Linux(t *testing.T) { |
| 138 | cmd := cpCommand("Linux", &implantpb.Request{Args: []string{"/a", "/b"}}) |
nothing calls this directly
no test coverage detected