• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / luma.gl / 16861129258

10 Aug 2025 12:01PM UTC coverage: 51.251% (-22.6%) from 73.868%
16861129258

Pull #2416

github

web-flow
Merge 98ff12c30 into f90a93cf3
Pull Request #2416: chore: Tests for texture reads

591 of 833 branches covered (70.95%)

Branch coverage included in aggregate %.

65 of 107 new or added lines in 7 files covered. (60.75%)

8551 existing lines in 130 files now uncovered.

18665 of 36739 relevant lines covered (50.8%)

11.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

29.63
/modules/engine/src/utils/buffer-layout-order.ts
1
// luma.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
import {type BufferLayout, type ShaderLayout} from '@luma.gl/core';
1✔
6

1✔
7
export function sortedBufferLayoutByShaderSourceLocations(
1✔
UNCOV
8
  shaderLayout: ShaderLayout,
×
UNCOV
9
  bufferLayout: BufferLayout[]
×
UNCOV
10
): BufferLayout[] {
×
UNCOV
11
  const shaderLayoutMap = Object.fromEntries(
×
UNCOV
12
    shaderLayout.attributes.map(attr => [attr.name, attr.location])
×
UNCOV
13
  );
×
UNCOV
14

×
UNCOV
15
  const sortedLayout = bufferLayout.slice();
×
UNCOV
16
  sortedLayout.sort((a, b) => {
×
UNCOV
17
    const attributeNamesA = a.attributes ? a.attributes.map(attr => attr.attribute) : [a.name];
×
UNCOV
18
    const attributeNamesB = b.attributes ? b.attributes.map(attr => attr.attribute) : [b.name];
×
UNCOV
19
    const minLocationA = Math.min(...attributeNamesA.map(name => shaderLayoutMap[name]));
×
UNCOV
20
    const minLocationB = Math.min(...attributeNamesB.map(name => shaderLayoutMap[name]));
×
UNCOV
21

×
UNCOV
22
    return minLocationA - minLocationB;
×
UNCOV
23
  });
×
UNCOV
24

×
UNCOV
25
  return sortedLayout;
×
UNCOV
26
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc