(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestLs_Command_Windows(t *testing.T) { |
| 58 | cmd := lsCommand("Windows", &implantpb.Request{Args: []string{"C:\\Users"}}) |
| 59 | if !strings.Contains(cmd, "dir /a") { |
| 60 | t.Errorf("Windows ls should use dir, got: %s", cmd) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func TestWhoami_Command(t *testing.T) { |
| 65 | cmd := whoamiCommand("Linux", &implantpb.Request{}) |
nothing calls this directly
no test coverage detected