Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is to exceed 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - basemath - char.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.1 lcov report (development 28880-3b5364847c) Lines: 820 857 95.7 %
Date: 2023-12-01 07:53:15 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
zncharker 21
charconj0 28
charker0 35
get_chi 35
bnr_coprime 42
chardiv0 42
charpow0 63
charmul0 154
charpow 189
charorder0 210
zncharpow 210
znlog0 294
get_cyc 532
znchardecompose 791
znchartokronecker 847
znchartoprimitive 1274
zncharconj 1526
not_coprime 1855
charconj 2345
znchar 3290
chareval 3605
chardiv 5348
znchardiv 5355
coprime_tables 5712
cyc2elts_normal 5740
chargalois 6195
zncharinduce 8386
zncharconductor 19873
Zideallog 23024
ncharvecexpo 33691
znstar 35739
zv_cyc_minimize 46627
znconreychar 46767
charker 97552
zv_cyc_minimal 100758
zv_charorder 101206
char_check 112861
znstar0 126376
znconreyfromchar 131117
znconreyfromchar_normalized 133035
zncharisodd 183659
zncharcheck 193277
cyc_normalize 234080
lcmuu 256991
znconreyexp 260764
char_normalize 274197
char_simplify 275051
charmul 302008
zncharmul 302015
znchar_quad 303331
zncharorder 377363
coprimes_zv 536039
znconreyconductor 719852
znconrey_check 888769
Zideallog_2k 949408
charorder 1370397
Zideallog_pk 1994352
chareval_i 2511467
znchareval 2513273
znconreylog 2577058
znconrey_normalized 2577260
znconreylog_normalize 2589762
checkznstar_i 3810682

Generated by: LCOV version 1.14