(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestCat_Command_Linux(t *testing.T) { |
| 84 | cmd := catCommand("Linux", &implantpb.Request{Args: []string{"/etc/passwd"}}) |
| 85 | if !strings.Contains(cmd, `cat "/etc/passwd"`) { |
| 86 | t.Errorf("Linux cat: got %q", cmd) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func TestCat_Command_Windows(t *testing.T) { |
| 91 | cmd := catCommand("Windows", &implantpb.Request{Args: []string{"C:\\file.txt"}}) |
nothing calls this directly
no test coverage detected