Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

uber / deck.gl / 13779

18 Sep 2019 - 0:00 coverage decreased (-2.9%) to 79.902%
13779

Pull #3623

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
beta.2
Pull Request #3623: Bump dependency versions

3405 of 4619 branches covered (73.72%)

Branch coverage included in aggregate %.

7031 of 8442 relevant lines covered (83.29%)

5687.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

61.54
/modules/aggregation-layers/src/utils/resource-utils.js
1
import GL from '@luma.gl/constants';
6×
2
import {Framebuffer, Texture2D, isWebGL2} from '@luma.gl/core';
3

4
const DEFAULT_PARAMETERS = {
1×
5
  [GL.TEXTURE_MAG_FILTER]: GL.NEAREST,
6
  [GL.TEXTURE_MIN_FILTER]: GL.NEAREST
7
};
8

9
export function getFloatTexture(gl, opts = {}) {
Branches [[0, 0]] missed.
10
  const {
11
    width = 1,
12
    height = 1,
13
    data = null,
14
    unpackFlipY = true,
15
    parameters = DEFAULT_PARAMETERS
16
  } = opts;
8×
17
  const texture = new Texture2D(gl, {
8×
18
    data,
19
    format: isWebGL2(gl) ? GL.RGBA32F : GL.RGBA,
Branches [[6, 0]] missed.
20
    type: GL.FLOAT,
21
    border: 0,
22
    mipmaps: false,
23
    parameters,
24
    dataFormat: GL.RGBA,
25
    width,
26
    height,
27
    unpackFlipY
28
  });
29
  return texture;
8×
30
}
31

32
export function getFramebuffer(gl, opts) {
UNCOV
33
  const {id, width = 1, height = 1, texture} = opts;
Branches [[7, 0], [8, 0]] missed. !
UNCOV
34
  const fb = new Framebuffer(gl, {
!
35
    id,
36
    width,
37
    height,
38
    attachments: {
39
      [GL.COLOR_ATTACHMENT0]: texture
40
    }
41
  });
42

UNCOV
43
  return fb;
!
44
}
45

46
export function getFloatArray(array, size, fillValue = 0) {
47
  if (!array || array.length < size) {
Branches [[10, 1], [11, 1]] missed. 79×
48
    return new Float32Array(size).fill(fillValue);
79×
49
  }
UNCOV
50
  return array;
!
51
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2019 Coveralls, LLC