github
4769 of 5426 branches covered (87.89%)
Branch coverage included in aggregate %.
13 of 14 new or added lines in 3 files covered. (92.86%)
6854 existing lines in 152 files now uncovered.47062 of 58712 relevant lines covered (80.16%)
4938.11 hits per line
1 |
// deck.gl
|
1✔ |
2 |
// SPDX-License-Identifier: MIT
|
1✔ |
3 |
// Copyright (c) vis.gl contributors
|
1✔ |
4 |
|
1✔ |
5 |
// Check if one JavaScript class inherits from another
|
1✔ |
6 |
export function inheritsFrom<T>(Type: any, ParentType: T): Type is T {
|
|
UNCOV
7
|
while (Type) {
|
× |
UNCOV
8
|
if (Type === ParentType) {
|
× |
UNCOV
9
|
return true; |
× |
UNCOV
10
|
} |
× |
UNCOV
11
|
Type = Object.getPrototypeOf(Type); |
× |
UNCOV
12
|
} |
× |
UNCOV
13
|
return false; |
× |
UNCOV
14
|
} |
× |