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 16741-1378b1c) Lines: 290 296 98.0 %
Date: 2014-08-17 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 8250
_member_clgp 8250
check_RES 70
ell_is_complex 125
is_ell 2170
is_ell5 2000
member_a1 400
member_a2 400
member_a3 400
member_a4 400
member_a6 400
member_area 135
member_b2 130
member_b4 130
member_b6 130
member_b8 130
member_bid 135
member_bnf 130
member_c4 135
member_c6 135
member_clgp 150
member_codiff 130
member_cyc 4430
member_diff 130
member_disc 1685
member_e 130
member_err 4790
member_eta 155
member_f 205
member_fu 150
member_futu 0
member_gen 1650
member_group 240
member_index 135
member_j 775
member_mod 150
member_nf 140
member_no 2120
member_omega 165
member_orders 130
member_p 35315
member_pol 245
member_polabs 160
member_r1 130
member_r2 130
member_reg 140
member_roots 145
member_sign 390
member_t2 130
member_tate 150
member_tu 130
member_tufu 0
member_zk 145
member_zkst 130
nfmats 390

Generated by: LCOV version 1.9