(t *testing.T)
| 149 | } |
| 150 | |
| 151 | func TestCd_Command_Linux(t *testing.T) { |
| 152 | cmd := cdCommand("Linux", &implantpb.Request{Args: []string{"/home"}}) |
| 153 | if !strings.Contains(cmd, `cd "/home" && pwd`) { |
| 154 | t.Errorf("Linux cd: got %q", cmd) |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | func TestCd_Command_Windows(t *testing.T) { |
| 159 | cmd := cdCommand("Windows", &implantpb.Request{Args: []string{"C:\\Users"}}) |
nothing calls this directly
no test coverage detected