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 20459-9710128) Lines: 293 301 97.3 %
Date: 2017-04-27 05:33:52 Functions: 54 56 96.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 10314
_member_clgp 10314
check_RES 192
ell_is_complex 198
ellnf_get_prec 54
is_ell 2820
is_ell5 6816
member_a1 1368
member_a2 1362
member_a3 1362
member_a4 1362
member_a6 1362
member_area 234
member_b2 162
member_b4 162
member_b6 162
member_b8 162
member_bid 168
member_bnf 162
member_c4 168
member_c6 168
member_clgp 216
member_codiff 168
member_cyc 5520
member_diff 162
member_disc 2310
member_e 162
member_err 6006
member_eta 210
member_f 5850
member_fu 180
member_futu 0
member_gen 2172
member_group 306
member_index 168
member_j 936
member_mod 6474
member_nf 246
member_no 2562
member_omega 222
member_orders 162
member_p 84078
member_pol 1410
member_polabs 192
member_r1 162
member_r2 162
member_reg 174
member_roots 186
member_sign 486
member_t2 162
member_tate 234
member_tu 162
member_tufu 0
member_zk 186
member_zkst 162
nfmats 492

Generated by: LCOV version 1.11