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

visgl / luma.gl / 17192022436

24 Aug 2025 06:02PM UTC coverage: 62.079% (-13.2%) from 75.234%
17192022436

Pull #2437

github

web-flow
Merge 562c391b0 into 8314ecefa
Pull Request #2437: test(engine): add ShaderPassRenderer test

956 of 1559 branches covered (61.32%)

Branch coverage included in aggregate %.

491 of 666 new or added lines in 7 files covered. (73.72%)

5291 existing lines in 117 files now uncovered.

23238 of 37414 relevant lines covered (62.11%)

3.53 hits per line

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

75.86
/modules/core/src/utils/is-array.ts
1
// luma.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
import type {TypedArray, NumberArray} from '../types';
1✔
6

1✔
7
/**
1✔
8
 * Check is an array is a typed array
1✔
9
 * @param value value to be tested
1✔
10
 * @returns input as TypedArray, or null
1✔
11
 * @todo this should be provided by @math.gl/types
1✔
12
 */
1✔
13
export function isTypedArray(value: unknown): value is TypedArray {
1✔
UNCOV
14
  return ArrayBuffer.isView(value) && !(value instanceof DataView);
×
UNCOV
15
}
×
16

1✔
17
/**
1✔
18
 * Check is an array is a numeric array (typed array or array of numbers)
1✔
19
 * @param value value to be tested
1✔
20
 * @returns input as NumberArray, or null
1✔
21
 * @todo this should be provided by @math.gl/types
1✔
22
 */
1✔
23
export function isNumberArray(value: unknown): value is NumberArray {
1✔
UNCOV
24
  if (Array.isArray(value)) {
×
UNCOV
25
    return value.length === 0 || typeof value[0] === 'number';
×
UNCOV
26
  }
×
UNCOV
27
  return isTypedArray(value);
×
UNCOV
28
}
×
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