asar coverage - build #


src/asar/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
7 of 7, 0 excluded
100.0%
Functions:
1 of 1, 0 excluded
100.0%
Branches:
8 of 21, 0 excluded
38.1%

errors.cpp
Line Branch Exec Source
1 #include <cassert>
2 #include <cstdarg>
3
4 #include "std-includes.h"
5 #include "errors.h"
6 #include "interface-shared.h"
7 #include "libstr.h"
8
9 475 void error_impl(const char* error_id, const char* fmt_string, int whichpass, ...) {
10 475 va_list args; va_start(args, whichpass);
11 242 char error_buffer[1024];
12
2/4
✓ Branch 2 → 3 taken 233 times.
✗ Branch 2 → 15 not taken.
✗ Branch 4 → 5 not taken.
✓ Branch 4 → 6 taken 242 times.
475 vsnprintf(error_buffer, sizeof(error_buffer), fmt_string, args);
13
14 // convert err_xxx -> Exxx
15
4/11
✗ Branch 2 → 3 not taken.
✗ Branch 2 → 11 not taken.
✓ Branch 3 → 4 taken 233 times.
✗ Branch 3 → 9 not taken.
✗ Branch 3 → 12 not taken.
✓ Branch 4 → 5 taken 233 times.
✗ Branch 4 → 10 not taken.
✓ Branch 9 → 10 taken 242 times.
✗ Branch 9 → 22 not taken.
✓ Branch 10 → 11 taken 242 times.
✗ Branch 10 → 20 not taken.
475 string errname = STR "E" + (error_id + 4);
16
17
2/6
✗ Branch 6 → 7 not taken.
✗ Branch 6 → 12 not taken.
✓ Branch 7 → 8 taken 233 times.
✗ Branch 7 → 13 not taken.
✓ Branch 14 → 15 taken 242 times.
✗ Branch 14 → 24 not taken.
475 error_interface(errname.data(), whichpass, error_buffer);
18 717 }
19