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 16791-0d1274a) Lines: 1431 1566 91.4 %
Date: 2014-09-16 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 1280
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 1540
galoisborne 1165
galoisconj 1050
galoisconj0 30
galoisconj1 345
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 1480
galoiscosets 30
galoisdolift 1185
galoisexport 20
galoisfindfrobenius 1100
galoisfindgroups 235
galoisfixedfield 535
galoisfrobeniuslift 1170
galoisfrobeniustest 1147
galoisgen 1130
galoisgenfixedfield 545
galoisgenliftauto 710
galoisgrouptopol 615
galoisidentify 280
galoisinit 430
galoisisabelian 120
galoisisnormal 40
galoismakepsi 315
galoispermtopol 530
galoispermtopol_i 860
galoissubfields 30
galoissubgroups 40
get_image 710
improves 8555
init_group 1540
initgaloisborne 1635
initlift 1185
inittest 550
inittestlift 385
intheadlong 685640
is2sparse 60
is_group 915
lincomb 2690
listznstarelts 470
makeLden 1115
matheadlong 670
matrixnorm 1165
monomorphismratlift 1280
monoratlift 3445
muldiv 0
notgalois 410
numberofconjugates 345
padicisint 23105
permtopol 3465
polheadlong 32385
poltopermtest 2681
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 1575
vandermondeinversemod 1195
vandermondeinverseprep 1635
vecheadlong 15165
vectopol 4010
wpow 710

Generated by: LCOV version 1.9