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.8.0 lcov report (development 18906-a425091) Lines: 293 297 98.7 %
Date: 2016-05-05 Functions: 53 55 96.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 205 216 94.9 %

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 11900
_member_clgp 11900
check_RES 126
ell_is_complex 231
is_ell 3171
is_ell5 4886
member_a1 574
member_a2 567
member_a3 567
member_a4 1589
member_a6 1589
member_area 245
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 224
member_codiff 196
member_cyc 6349
member_diff 189
member_disc 2436
member_e 189
member_err 7007
member_eta 224
member_f 45227
member_fu 210
member_futu 0
member_gen 2506
member_group 343
member_index 196
member_j 1092
member_mod 980
member_nf 203
member_no 2982
member_omega 245
member_orders 189
member_p 49448
member_pol 5915
member_polabs 231
member_r1 189
member_r2 189
member_reg 210
member_roots 210
member_sign 567
member_t2 189
member_tate 217
member_tu 189
member_tufu 0
member_zk 210
member_zkst 189
nfmats 574

Generated by: LCOV version 1.9