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.18.0 lcov report (development 29841-6055bbdca6) Lines: 820 857 95.7 %
Date: 2025-01-02 09:12:31 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 949576
Zideallog_pk 2000666
bnr_coprime 42
char_check 120056
char_normalize 292901
char_simplify 293804
charconj 6664
charconj0 28
chardiv 5544
chardiv0 42
chareval 3605
chareval_i 2520910
chargalois 10479
charker 97881
charker0 35
charmul 302008
charmul0 154
charorder 1382311
charorder0 210
charpow 189
charpow0 63
checkznstar_i 3870182
coprime_tables 8008
coprimes_zv 549969
cyc2elts_normal 8036
cyc_normalize 252637
get_chi 35
get_cyc 532
lcmuu 257075
ncharvecexpo 37191
not_coprime 1855
znchar 3297
znchar_quad 303331
zncharcheck 207158
zncharconductor 24325
zncharconj 5810
znchardecompose 791
znchardiv 5551
znchareval 2522716
zncharinduce 8477
zncharisodd 197449
zncharker 21
zncharmul 302015
zncharorder 388633
zncharpow 210
znchartokronecker 847
znchartoprimitive 5558
znconrey_check 903168
znconrey_normalized 2587382
znconreychar 46767
znconreyconductor 735924
znconreyexp 260778
znconreyfromchar 142919
znconreyfromchar_normalized 153055
znconreylog 2606500
znconreylog_normalize 2594193
znlog0 294
znstar 35788
znstar0 130996
zv_charorder 101248
zv_cyc_minimal 100800
zv_cyc_minimize 46627

Generated by: LCOV version 1.16