Coverage Report

Created: 2025-11-16 06:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/proj/src/embedded_resources.c
Line
Count
Source
1
#include <stdint.h>
2
#include <string.h>
3
4
#include "embedded_resources.h"
5
6
#if USE_SHARP_EMBED
7
8
#include "PROJ_DB_SQL_MD5.h"
9
10
1
const unsigned char *pj_get_embedded_proj_db(unsigned int *pnSize) {
11
1
    (void)PROJ_DB_SQL_MD5;
12
1
    static const unsigned char proj_db[] = {
13
1
#embed PROJ_DB
14
1
    };
15
1
    *pnSize = (unsigned int)sizeof(proj_db);
16
1
    return proj_db;
17
1
}
18
19
#else
20
21
#include "file_embed/proj_db.h"
22
const unsigned char *pj_get_embedded_proj_db(unsigned int *pnSize) {
23
    *pnSize = proj_db_size;
24
    return proj_db_data;
25
}
26
27
#endif
28
29
#include "file_embed/embedded_resources.c"