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 19821-98a93fe) Lines: 494 537 92.0 %
Date: 2016-12-02 05:49:16 Functions: 26 26 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_subfield 1099
append 45913
bound_for_coeff 448
calc_block 16737
chinese_retrieve_pol 476
choose_prime 224
compute_data 448
cycle_power_to_perm 10856825
embedding 476
fix_var 322
get_bezout 224
im_block_by_perm 1956787
init_primedata 224
init_traces 224
nfsubfields 350
ok_coeffs 588
perm_mul_i 14475825
polsimplify 588
poltrace 1316
print_block_system 10815
subfield 1959139
subfields_of_given_degree 378
subfields_poldata 322
subfieldsall 350
test_block 1959069
trace 5719

Generated by: LCOV version 1.11