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 - basemath - galconj.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 19844-48249ea) Lines: 1418 1498 94.7 %
Date: 2016-12-10 23:04:30 Functions: 85 87 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 1127
a4galoisgen 21
automorphismlift 1722
aux 399
checkgal 2429
checkgroup 777
chk_perm 1036
conjcyclo 56
embed_disc 19397
embed_roots 1224
fixedfieldfactmod 945
fixedfieldfactor 63
fixedfieldinclusion 560
fixedfieldorbits 1736
fixedfieldsurmer 1834
fixedfieldsympol 1736
freetest 952
frobeniusliftall 679
galois_group 756
galois_test_perm 68614
galoisanalysis 2695
galoisborne 1582
galoisconj 2037
galoisconj0 42
galoisconj1 637
galoisconj4 0
galoisconj4_main 2632
galoiscosets 63
galoisdolift 1589
galoisexport 28
galoisfindfrobenius 1470
galoisfindgroups 350
galoisfixedfield 791
galoisfrobeniuslift 1568
galoisfrobeniustest 1790
galoisgen 1512
galoisgenfixedfield 945
galoisgenliftauto 1183
galoisgrouptopol 441
galoisidentify 392
galoisinit 1505
galoisisabelian 168
galoisisnormal 56
galoismakepsi 511
galoispermtopol 1022
galoispermtopol_i 1505
galoissubfields 42
galoissubgroups 56
get_image 1183
improves 12105
init_group 2695
initgaloisborne 3047
initlift 1589
inittest 952
inittestlift 609
intheadlong 968548
is2sparse 119
is_group 1323
lincomb 3850
listznstarelts 728
makeLden 1491
matheadlong 1127
matrixnorm 7047
monomorphismratlift 1722
monoratlift 5256
muldiv 0
notgalois 1183
numberofconjugates 637
padicisint 33341
permtopol 5019
polheadlong 45640
poltopermtest 3857
s4galoisgen 21
s4makelift 133
s4releveauto 133
s4test 2380
stpow 2772
sympol_aut_evalmod 945
sympol_eval 2310
sympol_eval_newtonsum 2919
sympol_is1to1_lg 1967
testpermutation 1533
vandermondeinverse 2956
vandermondeinverseprep 3047
vecheadlong 22414
vectopol 5929
wpow 1183

Generated by: LCOV version 1.11