MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / getCellMetadata

Function getCellMetadata

lib/utils/TestHelper.ts:4–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3// Default cell sizes and offsets for use in below tests
4export function getCellMetadata() {
5 const cellSizes = [
6 10, // 0: 0..0 (min)
7 20, // 1: 0..10
8 15, // 2: 0..30
9 10, // 3: 5..45
10 15, // 4: 20..55
11 30, // 5: 50..70
12 20, // 6: 70..100
13 10, // 7: 80..110
14 30 // 8: 110..110 (max)
15 ];
16 return initCellMetadata({
17 cellCount: cellSizes.length,
18 size: ({ index }) => cellSizes[index]
19 });
20}

Callers 1

testHelperFunction · 0.90

Calls 1

initCellMetadataFunction · 0.90

Tested by 1

testHelperFunction · 0.72