(t *testing.T)
| 163 | } |
| 164 | |
| 165 | func TestChmod_Command_Linux(t *testing.T) { |
| 166 | cmd := chmodCommand("Linux", &implantpb.Request{Args: []string{"755", "/usr/local/bin/app"}}) |
| 167 | if !strings.Contains(cmd, `chmod 755`) { |
| 168 | t.Errorf("Linux chmod: got %q", cmd) |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func TestChmod_Command_Windows(t *testing.T) { |
| 173 | cmd := chmodCommand("Windows", &implantpb.Request{Args: []string{"755", "C:\\app.exe"}}) |
nothing calls this directly
no test coverage detected