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 to exceed 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 - basemath - subfield.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 938 958 97.9 %
Date: 2024-04-25 08:08:21 Functions: 48 49 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgXY_to_RgC 37961
_subfield 1428
append 35006
bound_for_coeff 31903
calc_block 33143
chinese_retrieve_pol 32458
choose_prime 30828
cmsubfield_get_roots 1085
compute_data 31904
cycle_power_to_perm 47621
embedding 32459
field_is_contained 19474
fix_var 29791
galoissubfieldcm 210
get_bezout 30814
heap_climb 1764
heap_descend 2569
heap_pop 1421
heap_push 1232
im_block_by_perm 22323
init_primedata 30812
init_traces 30813
maxgen_subfields 287
nfsubfields 315
nfsubfields0 32697
nfsubfields_fa 259
nfsubfieldscm 1148
nfsubfieldsmax 154
ok_coeffs 40432
perm_mul_i 229754
polsimplify 40432
poltrace 36449
print_block_system 32808
quadsubfieldcm 133
rootsuptoconj 280
setvarn2 0
subfield 54067
subfield_generator 1876
subfields_cleanup 1561
subfields_get_ero 287
subfields_get_fa 595
subfields_of_given_degree 31148
subfields_poldata 30813
subfieldsall 581
test_block 53311
trace 173531
try_imag 280
try_subfield_generator 3325
twoembequation 2583

Generated by: LCOV version 1.14