LCOV - code coverage report
Current view: top level - lib/dpkg Coverage Total Hit
Test: dpkg 1.22.7-3-g89f48 C code coverage Lines: 53.7 % 6667 3582
Test Date: 2024-07-17 02:53:43 Functions: 65.6 % 675 443
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 41.8 % 3748 1566

File Sort by file name Line Coverage Sort by line coverage Branch Coverage Sort by branch coverage Function Coverage Sort by function coverage
Rate Total Hit Rate Total Hit Rate Total Hit
execname.c
0.0%
0.0 % 9 0.0 % 2 0.0 % 1
options-parsers.c
0.0%
0.0 % 6 0.0 % 2 0.0 % 1
progress.c
0.0%
0.0 % 27 0.0 % 10 0.0 % 3
pkg-array.c
0.0%
0.0 % 34 0.0 % 12 0.0 % 5
strwide.c
0.0%
0.0 % 35 0.0 % 12 0.0 % 2
log.c
0.0%
0.0 % 45 0.0 % 16 0.0 % 3
db-ctrl-access.c
0.0%
0.0 % 39 0.0 % 20 0.0 % 2
trignote.c
0.0%
0.0 % 41 0.0 % 22 0.0 % 6
depcon.c
0.0%
0.0 % 31 0.0 % 30 0.0 % 4
db-fsys-digest.c
0.0%
0.0 % 55 0.0 % 32 0.0 % 3
db-ctrl-upgrade.c
0.0%
0.0 % 109 0.0 % 46 0.0 % 8
pkg-spec.c
0.0%
0.0 % 129 0.0 % 61 0.0 % 19
db-fsys-override.c
0.0%
0.0 % 99 0.0 % 74 0.0 % 4
triglib.c
7.9%7.9%
7.9 % 353 28 3.9 % 207 8 8.9 % 45 4
dir.c
15.7%15.7%
15.7 % 70 11 8.8 % 34 3 25.0 % 8 2
dbmodify.c
19.8%19.8%
19.8 % 243 48 9.4 % 159 15 31.2 % 16 5
c-ctype.c
100.0%
100.0 % 2 2 - 100.0 % 1 1
cleanup.c
19.0%19.0%
19.0 % 21 4 - 20.0 % 5 1
color.h
100.0%
100.0 % 2 2 - 100.0 % 1 1
options-dirs.c
100.0%
100.0 % 13 13 - 100.0 % 3 3
program.c
100.0%
100.0 % 10 10 - 100.0 % 2 2
dump.c
20.1%20.1%
20.1 % 298 60 15.0 % 220 33 34.8 % 23 8
fields.c
25.3%25.3%
25.3 % 392 99 17.1 % 246 42 57.1 % 21 12
db-fsys-files.c
24.8%24.8%
24.8 % 117 29 17.9 % 56 10 25.0 % 8 2
path-remove.c
29.1%29.1%
29.1 % 55 16 20.0 % 50 10 25.0 % 4 1
fsys-iter.c
39.4%39.4%
39.4 % 33 13 25.0 % 8 2 50.0 % 6 3
i18n.c
62.5%62.5%
62.5 % 24 15 25.0 % 8 2 60.0 % 5 3
pager.c
18.4%18.4%
18.4 % 49 9 27.3 % 22 6 25.0 % 4 1
pkg-files.c
62.1%62.1%
62.1 % 29 18 30.0 % 10 3 100.0 % 2 2
file.c
56.9%56.9%
56.9 % 109 62 30.4 % 56 17 75.0 % 12 9
mustlib.c
57.4%57.4%
57.4 % 54 31 35.0 % 20 7 84.6 % 13 11
db-ctrl-format.c
58.8%58.8%
58.8 % 51 30 36.4 % 22 8 62.5 % 8 5
fdio.c
65.7%65.7%
65.7 % 35 23 39.3 % 28 11 66.7 % 3 2
options.c
50.9%50.9%
50.9 % 163 83 39.5 % 162 64 63.6 % 11 7
compress.c
64.0%64.0%
64.0 % 519 332 42.4 % 262 111 80.9 % 47 38
pkg-format.c
56.0%56.0%
56.0 % 193 108 45.6 % 90 41 60.0 % 20 12
pkg-show.c
52.7%52.7%
52.7 % 112 59 46.3 % 54 25 42.1 % 19 8
fsys-hash.c
65.8%65.8%
65.8 % 79 52 47.4 % 38 18 87.5 % 8 7
report.c
70.5%70.5%
70.5 % 44 31 50.0 % 2 1 77.8 % 9 7
atomic-file.c
75.0%75.0%
75.0 % 56 42 50.0 % 34 17 87.5 % 8 7
subproc.c
46.8%46.8%
46.8 % 79 37 50.0 % 44 22 40.0 % 10 4
parse.c
68.6%68.6%
68.6 % 373 256 51.2 % 340 174 100.0 % 15 15
db-fsys-load.c
71.4%71.4%
71.4 % 28 20 55.6 % 18 10 100.0 % 1 1
ar.c
80.8%80.8%
80.8 % 104 84 56.9 % 58 33 100.0 % 13 13
error.c
68.8%68.8%
68.8 % 48 33 60.0 % 10 6 75.0 % 8 6
nfmalloc.c
100.0%
100.0 % 19 19 60.0 % 30 18 100.0 % 5 5
pkg-hash.c
76.6%76.6%
76.6 % 137 105 60.9 % 69 42 92.3 % 13 12
debug.c
79.4%79.4%
79.4 % 34 27 62.5 % 16 10 83.3 % 6 5
pkg.c
99.0%99.0%
99.0 % 101 100 63.2 % 38 24 100.0 % 12 12
ehandle.c
77.8%77.8%
77.8 % 203 158 63.3 % 60 38 84.6 % 26 22
buffer.c
82.3%82.3%
82.3 % 141 116 65.5 % 55 36 100.0 % 13 13
trigdeferred.c
80.8%80.8%
80.8 % 120 97 68.3 % 104 71 87.5 % 8 7
color.c
81.0%81.0%
81.0 % 21 17 70.0 % 10 7 100.0 % 3 3
db-fsys-divert.c
87.5%87.5%
87.5 % 32 28 71.4 % 14 10 100.0 % 1 1
arch.c
77.8%77.8%
77.8 % 117 91 73.8 % 61 45 91.7 % 12 11
tarfn.c
77.8%77.8%
77.8 % 288 224 74.0 % 146 108 93.3 % 15 14
treewalk.c
86.3%86.3%
86.3 % 204 176 76.1 % 88 67 93.3 % 30 28
parsehelp.c
70.6%70.6%
70.6 % 153 108 77.1 % 118 91 73.3 % 15 11
meminfo.c
96.6%96.6%
96.6 % 58 56 77.8 % 36 28 100.0 % 4 4
utils.c
88.2%88.2%
88.2 % 17 15 80.0 % 10 8 100.0 % 2 2
varbuf.c
94.5%94.5%
94.5 % 164 155 81.7 % 60 49 100.0 % 27 27
deb-version.c
96.2%96.2%
96.2 % 26 25 83.3 % 30 25 100.0 % 1 1
version.c
92.0%92.0%
92.0 % 75 69 85.5 % 62 53 100.0 % 6 6
command.c
95.3%95.3%
95.3 % 86 82 85.7 % 28 24 100.0 % 10 10
trigname.c
100.0%
100.0 % 7 7 87.5 % 8 7 100.0 % 1 1
path.c
100.0%
100.0 % 48 48 97.1 % 34 33 100.0 % 5 5
string.c
100.0%
100.0 % 58 58 97.1 % 34 33 100.0 % 7 7
c-ctype.h
100.0%
100.0 % 19 19 100.0 % 2 2 100.0 % 9 9
glob.c
100.0%
100.0 % 13 13 100.0 % 2 2 100.0 % 2 2
pkg-list.c
100.0%
100.0 % 14 14 100.0 % 2 2 100.0 % 3 3
progname.c
100.0%
100.0 % 7 7 100.0 % 2 2 100.0 % 2 2
strhash.c
100.0%
100.0 % 7 7 100.0 % 2 2 100.0 % 1 1
namevalue.c
100.0%
100.0 % 5 5 100.0 % 4 4 100.0 % 1 1
dbdir.c
100.0%
100.0 % 20 20 100.0 % 6 6 100.0 % 4 4
fsys-dir.c
100.0%
100.0 % 22 22 100.0 % 6 6 100.0 % 4 4
pkg-queue.c
100.0%
100.0 % 30 30 100.0 % 6 6 100.0 % 5 5
string.h
100.0%
100.0 % 4 4 100.0 % 8 8 100.0 % 2 2

Generated by: LCOV version 2.0-1