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

overlookmotel / livepack / 7670717345

26 Jan 2024 04:28PM UTC coverage: 90.363% (-0.02%) from 90.378%
7670717345

Pull #574

github

web-flow
Deps: Bump @babel/core from 7.23.6 to 7.23.9

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.23.6 to 7.23.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.9/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #574: Deps: Bump @babel/core from 7.23.6 to 7.23.9

4718 of 5088 branches covered (0.0%)

Branch coverage included in aggregate %.

12506 of 13973 relevant lines covered (89.5%)

8675.04 hits per line

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

56.86
/lib/shared/assertBug.js
1
/* --------------------
62✔
2
 * livepack module
62✔
3
 * Assertion function for bugs
62✔
4
 * ------------------*/
62✔
5

62✔
6
'use strict';
62✔
7

62✔
8
// Modules
62✔
9
const {isFunction} = require('is-it-type');
62✔
10

62✔
11
// Exports
62✔
12

62✔
13
/**
62✔
14
 * Assert with error message including request to file an issue in Livepack repo.
62✔
15
 * Use this function for sanity checks - conditions which should never arise if everything is working.
62✔
16
 * @param {*} condition - Condition - if falsy, error will be thrown
62✔
17
 * @param {string} [message] - Error message
62✔
18
 * @param {string} [explanation] - Further context for error
62✔
19
 * @param {Function} [getDiagnostics] - Function to run to get diagnostic details
62✔
20
 * @throws {Error} - If assertion fails
62✔
21
 * @returns {undefined}
62✔
22
 */
62✔
23
module.exports = function assertBug(condition, message, explanation, getDiagnostics) {
62✔
24
        if (condition) return;
58,478✔
25

×
26
        if (!message) message = 'Unknown error';
×
27
        if (isFunction(explanation)) {
×
28
                getDiagnostics = explanation;
×
29
                explanation = null;
×
30
        }
×
31

×
32
        let helpMsg = `${message}.\n`;
×
33
        if (explanation) helpMsg += `${explanation}.\n`;
×
34
        helpMsg += 'This is likely a bug in Livepack.\nPlease raise an issue at https://github.com/overlookmotel/livepack/issues';
×
35
        if (getDiagnostics) {
×
36
                helpMsg += ' including the following details:\n';
×
37
                helpMsg += getDiagnostics();
×
38
        }
×
39

×
40
        console.error(helpMsg); // eslint-disable-line no-console
×
41

×
42
        const err = new Error(message);
×
43
        Error.captureStackTrace(err, assertBug);
×
44
        throw err;
×
45
};
62✔
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