(mock *mockCgroup, path string, expected int)
| 348 | } |
| 349 | |
| 350 | func checkTaskid(mock *mockCgroup, path string, expected int) error { |
| 351 | data, err := readValue(mock, filepath.Join(path, cgroupTasks)) |
| 352 | if err != nil { |
| 353 | return err |
| 354 | } |
| 355 | v, err := strconv.Atoi(data) |
| 356 | if err != nil { |
| 357 | return err |
| 358 | } |
| 359 | if v != expected { |
| 360 | return fmt.Errorf("expected task id %d but received %d", expected, v) |
| 361 | } |
| 362 | return nil |
| 363 | } |
| 364 | |
| 365 | func mockNewNotInRdma(subsystems []Subsystem, path Path, resources *specs.LinuxResources) (Cgroup, error) { |
| 366 | for _, s := range subsystems { |
no test coverage detected
searching dependent graphs…