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.1 lcov report (development 30249-6b5dfc0a25) Lines: 820 857 95.7 %
Date: 2025-04-29 09:18:49 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
not_coprime 1855
znchar 3304
chareval 3605
chardiv 5544
znchardiv 5551
znchartoprimitive 5558
zncharconj 5810
charconj 6664
coprime_tables 8008
cyc2elts_normal 8036
zncharinduce 8477
chargalois 10479
Zideallog 23024
zncharconductor 24325
znstar 36124
ncharvecexpo 37331
zv_cyc_minimize 46627
znconreychar 46767
charker 97881
zv_cyc_minimal 100800
zv_charorder 101248
char_check 120057
znstar0 131402
znconreyfromchar 142919
znconreyfromchar_normalized 153055
zncharisodd 197498
zncharcheck 207207
cyc_normalize 252637
lcmuu 257075
znconreyexp 260792
char_normalize 292901
char_simplify 293804
charmul 302008
zncharmul 302015
znchar_quad 303331
zncharorder 388661
coprimes_zv 549969
znconreyconductor 736484
znconrey_check 903777
Zideallog_2k 949576
charorder 1382339
Zideallog_pk 2000680
chareval_i 2520917
znchareval 2522723
znconrey_normalized 2587515
znconreylog_normalize 2594340
znconreylog 2606528
checkznstar_i 3870833

Generated by: LCOV version 1.16