• 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

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

1✔
5
import {isNumberArray} from './is-array';
1✔
6

1✔
7
/** Test if two arrays are deep equal, with a length limit that defaults to 16 */
1✔
8
export function arrayEqual(a: unknown, b: unknown, limit: number = 16) {
1✔
UNCOV
9
  if (a !== b) {
×
UNCOV
10
    return false;
×
UNCOV
11
  }
×
12
  const arrayA = a;
×
13
  const arrayB = b;
×
14
  if (!isNumberArray(arrayA)) {
×
15
    return false;
×
16
  }
×
UNCOV
17
  if (isNumberArray(arrayB) && arrayA.length === arrayB.length) {
×
18
    for (let i = 0; i < arrayA.length; ++i) {
×
19
      if (arrayB[i] !== arrayA[i]) {
×
20
        return false;
×
21
      }
×
22
    }
×
23
  }
×
24
  return true;
×
25
}
×
26

1✔
27
/** Copy a value */
1✔
28
export function arrayCopy<T>(a: T): T {
1✔
UNCOV
29
  if (isNumberArray(a)) {
×
UNCOV
30
    return a.slice() as T;
×
UNCOV
31
  }
×
UNCOV
32
  return a;
×
UNCOV
33
}
×
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