(t *testing.T)
| 481 | } |
| 482 | |
| 483 | func TestNestedMapPin(t *testing.T) { |
| 484 | m := createMapInMap(t, ArrayOfMaps, Array) |
| 485 | |
| 486 | tmp := testutils.TempBPFFS(t) |
| 487 | |
| 488 | path := filepath.Join(tmp, "nested") |
| 489 | if err := m.Pin(path); err != nil { |
| 490 | t.Fatal(err) |
| 491 | } |
| 492 | m.Close() |
| 493 | |
| 494 | m, err := LoadPinnedMap(path, nil) |
| 495 | testutils.SkipIfNotSupported(t, err) |
| 496 | if err != nil { |
| 497 | t.Fatal(err) |
| 498 | } |
| 499 | defer m.Close() |
| 500 | } |
| 501 | |
| 502 | func TestNestedMapPinNested(t *testing.T) { |
| 503 | if _, err := newMap(t, &MapSpec{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…