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 20277-2bd9113) Lines: 494 537 92.0 %
Date: 2017-02-21 05:49:51 Functions: 26 26 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_subfield 1351
append 45941
bound_for_coeff 490
calc_block 16765
chinese_retrieve_pol 504
choose_prime 252
compute_data 490
cycle_power_to_perm 10856825
embedding 504
fix_var 434
get_bezout 252
im_block_by_perm 1956787
init_primedata 252
init_traces 252
nfsubfields 462
ok_coeffs 630
perm_mul_i 14475825
polsimplify 630
poltrace 1344
print_block_system 10843
subfield 1959181
subfields_of_given_degree 406
subfields_poldata 434
subfieldsall 462
test_block 1959097
trace 5831

Generated by: LCOV version 1.11