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 20084-3366ab4) Lines: 1418 1495 94.8 %
Date: 2017-01-19 05:50:13 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 1813
aux 588
checkgal 2436
checkgroup 784
chk_perm 1036
conjcyclo 63
embed_disc 19397
embed_roots 1310
fixedfieldfactmod 945
fixedfieldfactor 63
fixedfieldinclusion 560
fixedfieldorbits 1736
fixedfieldsurmer 1834
fixedfieldsympol 1736
freetest 952
frobeniusliftall 679
galois_group 791
galois_test_perm 68614
galoisanalysis 2947
galoisborne 1610
galoisconj 2044
galoisconj0 42
galoisconj1 637
galoisconj4 0
galoisconj4_main 2898
galoiscosets 63
galoisdolift 1617
galoisexport 28
galoisfindfrobenius 1491
galoisfindgroups 350
galoisfixedfield 791
galoisfrobeniuslift 1589
galoisfrobeniustest 1790
galoisgen 1540
galoisgenfixedfield 945
galoisgenliftauto 1183
galoisgrouptopol 441
galoisidentify 392
galoisinit 1764
galoisisabelian 168
galoisisnormal 56
galoismakepsi 511
galoispermtopol 1022
galoispermtopol_i 1505
galoissubfields 42
galoissubgroups 56
get_image 1183
improves 12364
init_group 2947
initgaloisborne 3173
initlift 1617
inittest 952
inittestlift 616
intheadlong 968548
is2sparse 119
is_group 1330
lincomb 5803
listznstarelts 728
makeLden 1519
matheadlong 1127
matrixnorm 7305
monomorphismratlift 1813
monoratlift 5277
muldiv 0
notgalois 1407
numberofconjugates 637
padicisint 33341
permtopol 5019
polheadlong 45640
poltopermtest 4011
s4galoisgen 28
s4makelift 196
s4releveauto 196
s4test 3577
stpow 2772
sympol_aut_evalmod 945
sympol_eval 2310
sympol_eval_newtonsum 2919
sympol_is1to1_lg 1967
testpermutation 1533
vandermondeinverse 3082
vandermondeinverseprep 3173
vecheadlong 22414
vectopol 5929
wpow 1183

Generated by: LCOV version 1.11