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 - language - members.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30702-bddb8d6928) Lines: 330 335 98.5 %
Date: 2026-02-23 02:23:56 Functions: 55 55 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 20529
_member_clgp 20529
check_RES 336
ell_is_complex 168
ellnf_get_prec 96
is_ell 2976
is_ell5 8256
member_a1 1656
member_a2 1650
member_a3 1650
member_a4 1650
member_a6 1650
member_area 216
member_b2 174
member_b4 174
member_b6 174
member_b8 174
member_bid 180
member_bnf 174
member_c4 180
member_c6 180
member_clgp 233
member_codiff 180
member_cyc 15829
member_diff 174
member_disc 2397
member_e 174
member_err 6653
member_eta 228
member_f 7272
member_fu 216
member_gen 3886
member_group 390
member_index 180
member_j 960
member_mod 7007
member_nf 382
member_no 2621
member_normfu 174
member_omega 270
member_orders 174
member_p 84642
member_pol 1832
member_polabs 199
member_r1 192
member_r2 174
member_reg 198
member_roots 198
member_sign 540
member_t2 174
member_tate 246
member_tu 186
member_zk 212
member_zkst 174
nfmats 528

Generated by: LCOV version 1.16