--------------------------------------------------------------------------- Command builder tests — verify each adapter generates correct OS commands ---------------------------------------------------------------------------
(t *testing.T)
| 13 | // --------------------------------------------------------------------------- |
| 14 | |
| 15 | func TestNetstat_Command_Linux(t *testing.T) { |
| 16 | cmd := netstatCommand("Linux", &implantpb.Request{}) |
| 17 | if !strings.Contains(cmd, "ss -tulnp") { |
| 18 | t.Errorf("Linux netstat should use ss, got: %s", cmd) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestNetstat_Command_Windows(t *testing.T) { |
| 23 | cmd := netstatCommand("Windows", &implantpb.Request{}) |
nothing calls this directly
no test coverage detected