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 21352-4be8729) Lines: 494 537 92.0 %
Date: 2017-11-23 06:21:03 Functions: 26 26 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11