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

visgl / luma.gl / 16861002932

10 Aug 2025 11:45AM UTC coverage: 51.305% (-22.6%) from 73.868%
16861002932

Pull #2416

github

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

595 of 835 branches covered (71.26%)

Branch coverage included in aggregate %.

66 of 101 new or added lines in 7 files covered. (65.35%)

8541 existing lines in 129 files now uncovered.

18683 of 36740 relevant lines covered (50.85%)

11.74 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