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

uber / deck.gl / 13945

20 Sep 2019 - 0:32 coverage decreased (-2.9%) to 79.802%
13945

Pull #3655

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
Update layer.md
Pull Request #3655: Update pydeck layer docs

3399 of 4611 branches covered (73.72%)

Branch coverage included in aggregate %.

7024 of 8450 relevant lines covered (83.12%)

5682.28 hits per line

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

78.26
/modules/core/src/lib/init.js
1
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
3×
2
//
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
// of this software and associated documentation files (the "Software"), to deal
5
// in the Software without restriction, including without limitation the rights
6
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
// copies of the Software, and to permit persons to whom the Software is
8
// furnished to do so, subject to the following conditions:
9
//
10
// The above copyright notice and this permission notice shall be included in
11
// all copies or substantial portions of the Software.
12
//
13
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
// THE SOFTWARE.
20

21
import {registerLoaders} from '@loaders.gl/core';
22
import {HTMLImageLoader} from '@loaders.gl/images';
23

24
import {global} from '../utils/globals';
25
import log from '../utils/log';
26
import jsonLoader from '../utils/json-loader';
27
import {initializeShaderModules} from '../shaderlib';
28

29
// Version detection using babel plugin
30
// Fallback for tests and SSR since global variable is defined by Webpack.
31
/* global __VERSION__ */
32
const version =
33
  typeof __VERSION__ !== 'undefined' ? __VERSION__ : global.DECK_VERSION || 'untranspiled source';
Branches [[0, 0]] missed. 1×
34

35
const STARTUP_MESSAGE = 'set deck.log.priority=1 (or higher) to trace attribute updates';
1×
36

37
if (global.deck && global.deck.VERSION !== version) {
Branches [[2, 0], [3, 1]] missed. 1×
UNCOV
38
  throw new Error(`deck.gl - multiple versions detected: ${global.deck.VERSION} vs ${version}`);
!
39
}
40

41
if (!global.deck) {
Branches [[4, 1]] missed. 1×
42
  log.log(0, `deck.gl ${version} - ${STARTUP_MESSAGE}`)();
1×
43

44
  global.deck = global.deck || {
1×
45
    VERSION: version,
46
    version,
47
    log
48
  };
49

50
  registerLoaders([jsonLoader, HTMLImageLoader]);
1×
51

52
  initializeShaderModules();
1×
53
}
54

55
export default global.deck;
1×
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