(t *testing.T)
| 336 | } |
| 337 | |
| 338 | func TestProgramInfoMapIDsNoMaps(t *testing.T) { |
| 339 | prog := createBasicProgram(t) |
| 340 | |
| 341 | info, err := prog.Info() |
| 342 | testutils.SkipIfNotSupported(t, err) |
| 343 | qt.Assert(t, qt.IsNil(err)) |
| 344 | |
| 345 | ids, ok := info.MapIDs() |
| 346 | switch { |
| 347 | case testutils.IsVersionLessThan(t, "4.15", "windows:0.20"): |
| 348 | qt.Assert(t, qt.IsFalse(ok)) |
| 349 | qt.Assert(t, qt.HasLen(ids, 0)) |
| 350 | |
| 351 | default: |
| 352 | qt.Assert(t, qt.IsTrue(ok)) |
| 353 | qt.Assert(t, qt.HasLen(ids, 0)) |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | func TestScanFdInfoReader(t *testing.T) { |
| 358 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…