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 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.10.0 lcov report (development 21505-505a0e1) Lines: 294 302 97.4 %
Date: 2017-12-17 06:20:46 Functions: 54 56 96.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 17353
_member_clgp 17353
check_RES 224
ell_is_complex 231
ellnf_get_prec 84
is_ell 3311
is_ell5 9492
member_a1 1904
member_a2 1897
member_a3 1897
member_a4 1897
member_a6 1897
member_area 280
member_b2 189
member_b4 189
member_b6 189
member_b8 189
member_bid 196
member_bnf 189
member_c4 196
member_c6 196
member_clgp 252
member_codiff 196
member_cyc 11760
member_diff 189
member_disc 2695
member_e 189
member_err 7007
member_eta 252
member_f 6825
member_fu 210
member_futu 0
member_gen 2534
member_group 357
member_index 196
member_j 1092
member_mod 7784
member_nf 308
member_no 2989
member_omega 266
member_orders 189
member_p 98238
member_pol 1652
member_polabs 224
member_r1 189
member_r2 189
member_reg 203
member_roots 217
member_sign 567
member_t2 189
member_tate 273
member_tu 189
member_tufu 0
member_zk 217
member_zkst 189
nfmats 574

Generated by: LCOV version 1.11