github
13 of 238 branches covered (5.46%)
Branch coverage included in aggregate %.
0 of 472 new or added lines in 41 files covered. (0.0%)
19728 existing lines in 193 files now uncovered.91 of 28170 relevant lines covered (0.32%)
0.02 hits per line
UNCOV
1
|
import type {Device} from '../device'; |
|
UNCOV
2
|
import {Resource, ResourceProps} from './resource'; |
× |
UNCOV
3
|
|
× |
UNCOV
4
|
export type ExternalTextureProps = ResourceProps & {
|
× |
UNCOV
5
|
source: HTMLVideoElement | null;
|
× |
UNCOV
6
|
colorSpace?: 'srgb'; |
× |
UNCOV
7
|
} |
× |
UNCOV
8
|
export abstract class ExternalTexture extends Resource<ExternalTextureProps> { |
× |
UNCOV
9
|
static override defaultProps: Required<ExternalTextureProps> = { |
× |
UNCOV
10
|
...Resource.defaultProps, |
× |
UNCOV
11
|
source: null, |
× |
UNCOV
12
|
colorSpace: 'srgb' |
× |
UNCOV
13
|
}; |
× |
UNCOV
14
|
|
× |
UNCOV
15
|
override get [Symbol.toStringTag](): string { return 'ExternalTexture'; } |
× |
UNCOV
16
|
|
× |
UNCOV
17
|
constructor(device: Device, props: ExternalTextureProps) { |
× |
18 |
super(device, props, ExternalTexture.defaultProps); |
× |
19 |
} |
× |
UNCOV
20
|
} |
× |