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 20443-183d202) Lines: 293 301 97.3 %
Date: 2017-03-27 05:17:48 Functions: 54 56 96.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_check_clgp 8595
_member_clgp 8595
check_RES 160
ell_is_complex 165
ellnf_get_prec 45
is_ell 2350
is_ell5 5680
member_a1 1140
member_a2 1135
member_a3 1135
member_a4 1135
member_a6 1135
member_area 195
member_b2 135
member_b4 135
member_b6 135
member_b8 135
member_bid 140
member_bnf 135
member_c4 140
member_c6 140
member_clgp 180
member_codiff 140
member_cyc 4600
member_diff 135
member_disc 1925
member_e 135
member_err 5005
member_eta 175
member_f 4875
member_fu 150
member_futu 0
member_gen 1810
member_group 255
member_index 140
member_j 780
member_mod 5395
member_nf 205
member_no 2135
member_omega 185
member_orders 135
member_p 70065
member_pol 1175
member_polabs 160
member_r1 135
member_r2 135
member_reg 145
member_roots 155
member_sign 405
member_t2 135
member_tate 195
member_tu 135
member_tufu 0
member_zk 155
member_zkst 135
nfmats 410

Generated by: LCOV version 1.11