(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestFileDescriptors(t *testing.T) { |
| 200 | p1, err := getProcFixtures(t).Proc(26231) |
| 201 | if err != nil { |
| 202 | t.Fatal(err) |
| 203 | } |
| 204 | fds, err := p1.FileDescriptors() |
| 205 | if err != nil { |
| 206 | t.Fatal(err) |
| 207 | } |
| 208 | sort.Sort(byUintptr(fds)) |
| 209 | if want := []uintptr{0, 1, 2, 3, 10}; !reflect.DeepEqual(want, fds) { |
| 210 | t.Errorf("want fds %v, have %v", want, fds) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | func TestFileDescriptorTargets(t *testing.T) { |
| 215 | p1, err := getProcFixtures(t).Proc(26231) |
nothing calls this directly
no test coverage detected