MCPcopy Create free account
hub / github.com/gre/gl-react / FakeTextureElement

Class FakeTextureElement

packages/tests/utils.js:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27export class FakeTextureElement extends React.Component {
28 _fakeTexture: FakeTexture;
29 constructor(props: any) {
30 super(props);
31 this._fakeTexture = new FakeTexture(props);
32 }
33 getRootRef() {
34 return this._fakeTexture;
35 }
36 render() {
37 return <span />;
38 }
39}
40
41export const expectToBeCloseToColorArray = (
42 actual: Uint8Array,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…