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 - modules - subfield.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17110-9967e23) Lines: 496 537 92.4 %
Date: 2014-11-26 Functions: 26 26 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 289 356 81.2 %

Function Name Sort by function name Hit count Sort by hit count
_subfield 325
append 32655
bound_for_coeff 195
calc_block 11825
chinese_retrieve_pol 210
choose_prime 60
compute_data 195
cycle_power_to_perm 7754820
embedding 210
fix_var 65
get_bezout 60
im_block_by_perm 1397650
init_primedata 60
init_traces 60
nfsubfields 85
ok_coeffs 280
perm_mul_i 10339765
polsimplify 280
poltrace 775
print_block_system 7600
subfield 1399210
subfields_of_given_degree 155
subfields_poldata 65
subfieldsall 85
test_block 1399170
trace 3285

Generated by: LCOV version 1.9