• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / deck.gl / 15161300577

21 May 2025 11:45AM UTC coverage: 91.417% (-0.004%) from 91.421%
15161300577

Pull #9641

github

web-flow
Merge 8403417a6 into aaaf0d211
Pull Request #9641: chore(json): Typing improvements

6762 of 7427 branches covered (91.05%)

Branch coverage included in aggregate %.

143 of 152 new or added lines in 12 files covered. (94.08%)

6 existing lines in 1 file now uncovered.

55970 of 61195 relevant lines covered (91.46%)

14409.35 hits per line

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

71.43
/modules/json/src/helpers/execute-function.ts
1
// deck.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
import {type JSONConfiguration} from '../json-configuration';
1✔
6

1✔
7
/**
1✔
8
 * Attempt to execute a function
1✔
9
 */
1✔
10
export function executeFunction(targetFunction, props, configuration: JSONConfiguration) {
1✔
11
  // Find the function
2✔
12
  const matchedFunction = configuration.config.functions[targetFunction];
2✔
13

2✔
14
  // Check that the function is in the configuration.
2✔
15
  if (!matchedFunction) {
2!
NEW
16
    const {log} = configuration.config; // eslint-disable-line
×
17
    if (log) {
×
18
      const stringProps = JSON.stringify(props, null, 0).slice(0, 40);
×
19
      log.warn(`JSON converter: No registered function ${targetFunction}(${stringProps}...)  `);
×
20
    }
×
21
    return null;
×
22
  }
×
23

2✔
24
  return matchedFunction(props);
2✔
25
}
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc