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.0 lcov report (development 29806-4d001396c7) Lines: 330 335 98.5 %
Date: 2024-12-22 09:08:28 Functions: 55 55 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 24661
_member_clgp 24661
check_RES 385
ell_is_complex 196
ellnf_get_prec 112
is_ell 3472
is_ell5 9562
member_a1 1918
member_a2 1911
member_a3 1911
member_a4 1911
member_a6 1911
member_area 252
member_b2 203
member_b4 203
member_b6 203
member_b8 203
member_bid 210
member_bnf 203
member_c4 210
member_c6 210
member_clgp 273
member_codiff 210
member_cyc 19173
member_diff 203
member_disc 2786
member_e 203
member_err 7763
member_eta 266
member_f 8484
member_fu 252
member_gen 4536
member_group 455
member_index 210
member_j 1120
member_mod 8295
member_nf 448
member_no 3059
member_normfu 203
member_omega 315
member_orders 203
member_p 98749
member_pol 2289
member_polabs 238
member_r1 224
member_r2 203
member_reg 231
member_roots 231
member_sign 630
member_t2 203
member_tate 287
member_tu 217
member_zk 252
member_zkst 203
nfmats 616

Generated by: LCOV version 1.16