(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func TestKill_Command_Windows(t *testing.T) { |
| 117 | cmd := killCommand("Windows", &implantpb.Request{Args: []string{"1234"}}) |
| 118 | if !strings.Contains(cmd, "taskkill") && !strings.Contains(cmd, "1234") { |
| 119 | t.Errorf("Windows kill: got %q", cmd) |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | func TestMkdir_Command_Linux(t *testing.T) { |
| 124 | cmd := mkdirCommand("Linux", &implantpb.Request{Args: []string{"/tmp/test"}}) |
nothing calls this directly
no test coverage detected