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-bordeaux1.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.8.0 lcov report (development 16624-25b9976) Lines: 1431 1566 91.4 %
Date: 2014-06-24 Functions: 86 90 95.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 834 1075 77.6 %

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 675
a4galoisgen 15
automorphismlift 1285
aux 285
checkgal 1447
checkgroup 540
chk_perm 710
conjcyclo 95
embed_disc 12290
embed_roots 383
fixedfieldfactmod 550
fixedfieldfactor 30
fixedfieldinclusion 385
fixedfieldorbits 1085
fixedfieldsurmer 1165
fixedfieldsympol 1085
freetest 555
frobeniusliftall 420
galois_group 290
galois_test_perm 48875
galoisanalysis 1545
galoisborne 1170
galoisconj 1055
galoisconj0 30
galoisconj1 345
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 1485
galoiscosets 30
galoisdolift 1190
galoisexport 20
galoisfindfrobenius 1105
galoisfindgroups 235
galoisfixedfield 535
galoisfrobeniuslift 1175
galoisfrobeniustest 1152
galoisgen 1135
galoisgenfixedfield 550
galoisgenliftauto 715
galoisgrouptopol 620
galoisidentify 280
galoisinit 430
galoisisabelian 120
galoisisnormal 40
galoismakepsi 315
galoispermtopol 547
galoispermtopol_i 877
galoissubfields 30
galoissubgroups 40
get_image 715
improves 8585
init_group 1545
initgaloisborne 1645
initlift 1190
inittest 555
inittestlift 385
intheadlong 685960
is2sparse 60
is_group 915
lincomb 2697
listznstarelts 470
makeLden 1120
matheadlong 675
matrixnorm 1170
monomorphismratlift 1285
monoratlift 3469
muldiv 0
notgalois 410
numberofconjugates 345
padicisint 23140
permtopol 3527
polheadlong 32385
poltopermtest 2686
s4galoisgen 15
s4makelift 95
s4releveauto 95
s4test 1672
stpow 1720
sympol_aut_evalmod 550
sympol_eval 1500
sympol_eval_newtonsum 1825
sympol_is1to1_lg 1255
testpermutation 960
vandermondeinverse 1585
vandermondeinversemod 1200
vandermondeinverseprep 1645
vecheadlong 15205
vectopol 4072
wpow 715

Generated by: LCOV version 1.9