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 20459-9710128) Lines: 494 537 92.0 %
Date: 2017-04-27 05:33:52 Functions: 26 26 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_subfield 1158
append 39378
bound_for_coeff 420
calc_block 14370
chinese_retrieve_pol 432
choose_prime 216
compute_data 420
cycle_power_to_perm 9305850
embedding 432
fix_var 372
get_bezout 216
im_block_by_perm 1677246
init_primedata 216
init_traces 216
nfsubfields 396
ok_coeffs 540
perm_mul_i 12407850
polsimplify 540
poltrace 1152
print_block_system 9294
subfield 1679298
subfields_of_given_degree 348
subfields_poldata 372
subfieldsall 396
test_block 1679226
trace 4998

Generated by: LCOV version 1.11