• 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

72.97
/modules/webgl/src/context/state-tracker/deep-array-equal.ts
1
// luma.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
import {TypedArray} from '@luma.gl/core';
1✔
6

1✔
7
/** deeply compare two arrays */
1✔
8
export function deepArrayEqual(
1✔
9
  x: unknown | unknown[] | TypedArray,
209✔
10
  y: unknown | unknown[] | TypedArray
209✔
11
): boolean {
209✔
12
  if (x === y) {
209✔
13
    return true;
19✔
14
  }
19✔
15
  if (isArray(x) && isArray(y) && x.length === y.length) {
209!
UNCOV
16
    for (let i = 0; i < x.length; ++i) {
×
UNCOV
17
      if (x[i] !== y[i]) {
×
UNCOV
18
        return false;
×
UNCOV
19
      }
×
UNCOV
20
    }
×
UNCOV
21
    return true;
×
UNCOV
22
  }
✔
23
  return false;
190✔
24
}
190✔
25

1✔
26
function isArray(x: unknown): x is unknown[] {
190✔
27
  return Array.isArray(x) || ArrayBuffer.isView(x);
190✔
28
}
190✔
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