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 - modules - subfield.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20443-183d202) Lines: 494 537 92.0 %
Date: 2017-03-27 05:17:48 Functions: 26 26 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_subfield 965
append 32815
bound_for_coeff 350
calc_block 11975
chinese_retrieve_pol 360
choose_prime 180
compute_data 350
cycle_power_to_perm 7754875
embedding 360
fix_var 310
get_bezout 180
im_block_by_perm 1397705
init_primedata 180
init_traces 180
nfsubfields 330
ok_coeffs 450
perm_mul_i 10339875
polsimplify 450
poltrace 960
print_block_system 7745
subfield 1399415
subfields_of_given_degree 290
subfields_poldata 310
subfieldsall 330
test_block 1399355
trace 4165

Generated by: LCOV version 1.11