asar coverage - build #274


src/asar/
File: src/asar/errors.cpp
Date: 2025-03-04 15:06:12
Lines:
6/6
100.0%
Functions:
1/1
100.0%
Branches:
3/4
75.0%

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
8 565 void error_impl(const char* error_id, const char* fmt_string, int whichpass, ...) {
9 565 va_list args; va_start(args, whichpass);
10 288 char error_buffer[1024];
11
2/2
✓ Branch 0 taken 277 times.
✓ Branch 1 taken 288 times.
565 vsnprintf(error_buffer, sizeof(error_buffer), fmt_string, args);
12
13
1/2
✓ Branch 0 taken 565 times.
✗ Branch 1 not taken.
565 error_interface(error_id, whichpass, error_buffer);
14 565 }
15