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-bordeaux1.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 16912-212c0f0) Lines: 290 296 98.0 %
Date: 2014-10-20 Functions: 53 55 96.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 201 214 93.9 %

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 11550
_member_clgp 11550
check_RES 98
ell_is_complex 175
is_ell 3038
is_ell5 2800
member_a1 560
member_a2 560
member_a3 560
member_a4 560
member_a6 560
member_area 189
member_b2 182
member_b4 182
member_b6 182
member_b8 182
member_bid 189
member_bnf 182
member_c4 189
member_c6 189
member_clgp 210
member_codiff 182
member_cyc 6202
member_diff 182
member_disc 2359
member_e 182
member_err 6706
member_eta 217
member_f 287
member_fu 203
member_futu 0
member_gen 2310
member_group 336
member_index 189
member_j 1085
member_mod 217
member_nf 196
member_no 2968
member_omega 231
member_orders 182
member_p 49441
member_pol 343
member_polabs 224
member_r1 182
member_r2 182
member_reg 196
member_roots 203
member_sign 546
member_t2 182
member_tate 210
member_tu 182
member_tufu 0
member_zk 203
member_zkst 182
nfmats 546

Generated by: LCOV version 1.9