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 16937-4bd9b4e) Lines: 496 537 92.4 %
Date: 2014-10-24 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 455
append 45717
bound_for_coeff 273
calc_block 16555
chinese_retrieve_pol 294
choose_prime 84
compute_data 273
cycle_power_to_perm 10856748
embedding 294
fix_var 91
get_bezout 84
im_block_by_perm 1956710
init_primedata 84
init_traces 84
nfsubfields 119
ok_coeffs 392
perm_mul_i 14475671
polsimplify 392
poltrace 1085
print_block_system 10640
subfield 1958894
subfields_of_given_degree 217
subfields_poldata 91
subfieldsall 119
test_block 1958838
trace 4599

Generated by: LCOV version 1.9