• 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

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