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 16741-1378b1c) Lines: 1431 1566 91.4 %
Date: 2014-08-17 Functions: 86 90 95.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 833 1075 77.5 %

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 670
a4galoisgen 15
automorphismlift 1275
aux 285
checkgal 1430
checkgroup 540
chk_perm 710
conjcyclo 95
embed_disc 12290
embed_roots 410
fixedfieldfactmod 545
fixedfieldfactor 30
fixedfieldinclusion 385
fixedfieldorbits 1080
fixedfieldsurmer 1160
fixedfieldsympol 1080
freetest 550
frobeniusliftall 420
galois_group 290
galois_test_perm 48870
galoisanalysis 1535
galoisborne 1160
galoisconj 1045
galoisconj0 30
galoisconj1 345
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 1475
galoiscosets 30
galoisdolift 1180
galoisexport 20
galoisfindfrobenius 1095
galoisfindgroups 235
galoisfixedfield 535
galoisfrobeniuslift 1165
galoisfrobeniustest 1147
galoisgen 1125
galoisgenfixedfield 545
galoisgenliftauto 710
galoisgrouptopol 610
galoisidentify 280
galoisinit 430
galoisisabelian 120
galoisisnormal 40
galoismakepsi 315
galoispermtopol 530
galoispermtopol_i 860
galoissubfields 30
galoissubgroups 40
get_image 710
improves 8540
init_group 1535
initgaloisborne 1630
initlift 1180
inittest 550
inittestlift 385
intheadlong 685640
is2sparse 60
is_group 915
lincomb 2690
listznstarelts 470
makeLden 1110
matheadlong 670
matrixnorm 1160
monomorphismratlift 1275
monoratlift 3440
muldiv 0
notgalois 410
numberofconjugates 345
padicisint 23105
permtopol 3455
polheadlong 32385
poltopermtest 2676
s4galoisgen 15
s4makelift 95
s4releveauto 95
s4test 1665
stpow 1710
sympol_aut_evalmod 545
sympol_eval 1495
sympol_eval_newtonsum 1820
sympol_is1to1_lg 1250
testpermutation 955
vandermondeinverse 1570
vandermondeinversemod 1190
vandermondeinverseprep 1630
vecheadlong 15165
vectopol 4000
wpow 710

Generated by: LCOV version 1.9