(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestCat_Command_Windows(t *testing.T) { |
| 91 | cmd := catCommand("Windows", &implantpb.Request{Args: []string{"C:\\file.txt"}}) |
| 92 | if !strings.Contains(cmd, "type") { |
| 93 | t.Errorf("Windows cat should use type, got: %q", cmd) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func TestEnv_Command_Linux(t *testing.T) { |
| 98 | if cmd := envCommand("Linux", nil); cmd != "env" { |
nothing calls this directly
no test coverage detected