(t *testing.T)
| 204 | } |
| 205 | |
| 206 | func TestPsResponse_ParsesLinux(t *testing.T) { |
| 207 | output := " 1 0 root systemd /sbin/init\n" |
| 208 | spite := psResponse(output, "Linux", nil) |
| 209 | pr := spite.GetPsResponse() |
| 210 | if pr == nil { |
| 211 | t.Fatal("expected PsResponse body") |
| 212 | } |
| 213 | if len(pr.Processes) == 0 { |
| 214 | t.Error("expected at least one process") |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func TestEnvResponse_Parses(t *testing.T) { |
| 219 | output := "PATH=/usr/bin\nHOME=/root\n" |
nothing calls this directly
no test coverage detected