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 29712-7c8a932571) Lines: 330 335 98.5 %
Date: 2024-11-15 09:08:45 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_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_r1 224
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 385
member_nf 448
member_group 455
nfmats 616
member_sign 630
member_j 1120
member_a2 1911
member_a3 1911
member_a4 1911
member_a6 1911
member_a1 1918
member_pol 2289
member_disc 2786
member_no 3059
is_ell 3472
member_gen 4536
member_err 7763
member_mod 8295
member_f 8484
is_ell5 9562
member_cyc 19173
_check_clgp 24661
_member_clgp 24661
member_p 98749

Generated by: LCOV version 1.16