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 30074-db9b3c0519) Lines: 820 857 95.7 %
Date: 2025-03-13 08:38:27 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
zncharker 18
charconj0 24
charker0 30
get_chi 30
bnr_coprime 36
chardiv0 36
charpow0 54
charmul0 132
charpow 162
charorder0 180
zncharpow 180
znlog0 252
get_cyc 456
znchardecompose 678
znchartokronecker 726
not_coprime 1590
znchar 2826
chareval 3090
chardiv 4752
znchardiv 4758
znchartoprimitive 4764
zncharconj 4980
charconj 5712
coprime_tables 6864
cyc2elts_normal 6888
zncharinduce 7266
chargalois 8982
Zideallog 19788
zncharconductor 20850
znstar 30950
ncharvecexpo 31878
zv_cyc_minimize 39966
znconreychar 40086
charker 83898
zv_cyc_minimal 86400
zv_charorder 86784
char_check 102906
znstar0 112622
znconreyfromchar 122502
znconreyfromchar_normalized 131190
zncharisodd 169254
zncharcheck 177576
cyc_normalize 216546
lcmuu 220350
znconreyexp 223524
char_normalize 251058
char_simplify 251832
charmul 258864
zncharmul 258870
znchar_quad 259998
zncharorder 333126
coprimes_zv 471402
znconreyconductor 630846
znconrey_check 774210
Zideallog_2k 813940
charorder 1184850
Zideallog_pk 1714938
chareval_i 2160780
znchareval 2162328
znconrey_normalized 2217756
znconreylog_normalize 2223594
znconreylog 2234196
checkznstar_i 3317418

Generated by: LCOV version 1.16