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.16.2 lcov report (development 29115-f22e516b23) Lines: 330 335 98.5 %
Date: 2024-03-29 08:06:26 Functions: 55 55 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellnf_get_prec 112
ell_is_complex 196
member_b2 203
member_b4 203
member_b6 203
member_b8 203
member_bnf 203
member_diff 203
member_e 203
member_normfu 203
member_orders 203
member_r1 203
member_r2 203
member_t2 203
member_zkst 203
member_bid 210
member_c4 210
member_c6 210
member_codiff 210
member_index 210
member_tu 217
member_reg 231
member_roots 231
member_polabs 238
member_area 252
member_fu 252
member_zk 252
member_eta 266
member_clgp 273
member_tate 287
member_omega 315
check_RES 378
member_group 448
member_nf 448
member_sign 609
nfmats 616
member_j 1120
member_a2 1911
member_a3 1911
member_a4 1911
member_a6 1911
member_a1 1918
member_pol 1981
member_gen 2569
member_disc 2751
member_no 3059
is_ell 3472
member_f 7329
member_err 7763
member_mod 8281
is_ell5 9562
member_cyc 14882
_check_clgp 20370
_member_clgp 20370
member_p 98259

Generated by: LCOV version 1.14