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 28676-df828f1c94) Lines: 820 857 95.7 %
Date: 2023-08-26 07:54:43 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14