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 17097-9391e68) Lines: 1428 1562 91.4 %
Date: 2014-11-21 Functions: 86 90 95.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 828 1069 77.5 %

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 665
a4galoisgen 15
automorphismlift 1280
aux 285
checkgal 1430
checkgroup 540
chk_perm 710
conjcyclo 95
embed_disc 12210
embed_roots 945
fixedfieldfactmod 540
fixedfieldfactor 30
fixedfieldinclusion 385
fixedfieldorbits 1075
fixedfieldsurmer 1155
fixedfieldsympol 1075
freetest 545
frobeniusliftall 415
galois_group 290
galois_test_perm 48865
galoisanalysis 1545
galoisborne 1165
galoisconj 1055
galoisconj0 30
galoisconj1 350
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 1485
galoiscosets 30
galoisdolift 1185
galoisexport 20
galoisfindfrobenius 1100
galoisfindgroups 235
galoisfixedfield 535
galoisfrobeniuslift 1170
galoisfrobeniustest 1137
galoisgen 1130
galoisgenfixedfield 540
galoisgenliftauto 705
galoisgrouptopol 615
galoisidentify 280
galoisinit 430
galoisisabelian 120
galoisisnormal 40
galoismakepsi 310
galoispermtopol 530
galoispermtopol_i 860
galoissubfields 30
galoissubgroups 40
get_image 705
improves 8560
init_group 1545
initgaloisborne 2170
initlift 1185
inittest 545
inittestlift 380
intheadlong 685440
is2sparse 55
is_group 915
lincomb 2690
listznstarelts 465
makeLden 1115
matheadlong 665
matrixnorm 1165
monomorphismratlift 1280
monoratlift 3431
muldiv 0
notgalois 415
numberofconjugates 350
padicisint 23080
permtopol 3440
polheadlong 32365
poltopermtest 2671
s4galoisgen 15
s4makelift 95
s4releveauto 95
s4test 1665
stpow 1700
sympol_aut_evalmod 540
sympol_eval 1490
sympol_eval_newtonsum 1805
sympol_is1to1_lg 1245
testpermutation 950
vandermondeinverse 2110
vandermondeinversemod 1195
vandermondeinverseprep 2170
vecheadlong 15135
vectopol 3985
wpow 705

Generated by: LCOV version 1.9