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.1 lcov report (development 28880-3b5364847c) Lines: 940 958 98.1 %
Date: 2023-12-01 07:53:15 Functions: 48 49 98.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14