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

ialopezg / corejs / #5

03 Nov 2023 08:38PM UTC coverage: 42.153% (-47.5%) from 89.623%
#5

push

ialopezg
feat: add microservice feature

10 of 84 branches covered (0.0%)

Branch coverage included in aggregate %.

49 of 77 new or added lines in 20 files covered. (63.64%)

155 existing lines in 21 files now uncovered.

221 of 464 relevant lines covered (47.63%)

0.51 hits per line

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

50.0
/src/errors/wrapper.ts
1
import { ExceptionHandler } from './handler';
1✔
2
import { RuntimeException } from './exceptions';
3

4
/**
5
 * Exception Wrapper.
6
 */
7
export class ExceptionWrapper {
1✔
8
  private static readonly handler = new ExceptionHandler();
1✔
9

10
  /**
11
   * Runs a function into a safe wrapper.
12
   *
13
   * @param {() => void} callback Process or function to be run.
14
   */
15
  public static run(callback: () => void): void {
16
    try {
×
UNCOV
17
      callback();
×
18
    } catch (error: any) {
UNCOV
19
      this.handler.handle(error);
×
20
    }
21
  }
22
}
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

© 2026 Coveralls, Inc