(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestCd_Command_Windows(t *testing.T) { |
| 159 | cmd := cdCommand("Windows", &implantpb.Request{Args: []string{"C:\\Users"}}) |
| 160 | if !strings.Contains(cmd, `cd /d`) { |
| 161 | t.Errorf("Windows cd: got %q", cmd) |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | func TestChmod_Command_Linux(t *testing.T) { |
| 166 | cmd := chmodCommand("Linux", &implantpb.Request{Args: []string{"755", "/usr/local/bin/app"}}) |
nothing calls this directly
no test coverage detected