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 16962-5a32637) Lines: 1431 1566 91.4 %
Date: 2014-10-29 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 931
a4galoisgen 21
automorphismlift 1743
aux 399
checkgal 2002
checkgroup 756
chk_perm 994
conjcyclo 133
embed_disc 16898
embed_roots 546
fixedfieldfactmod 756
fixedfieldfactor 42
fixedfieldinclusion 539
fixedfieldorbits 1505
fixedfieldsurmer 1617
fixedfieldsympol 1505
freetest 763
frobeniusliftall 581
galois_group 406
galois_test_perm 68411
galoisanalysis 2079
galoisborne 1582
galoisconj 1393
galoisconj0 42
galoisconj1 455
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 1995
galoiscosets 42
galoisdolift 1610
galoisexport 28
galoisfindfrobenius 1491
galoisfindgroups 329
galoisfixedfield 749
galoisfrobeniuslift 1589
galoisfrobeniustest 1589
galoisgen 1533
galoisgenfixedfield 756
galoisgenliftauto 987
galoisgrouptopol 812
galoisidentify 392
galoisinit 602
galoisisabelian 168
galoisisnormal 56
galoismakepsi 434
galoispermtopol 742
galoispermtopol_i 1204
galoissubfields 42
galoissubgroups 56
get_image 987
improves 11816
init_group 2079
initgaloisborne 2212
initlift 1610
inittest 763
inittestlift 532
intheadlong 959616
is2sparse 70
is_group 1281
lincomb 3766
listznstarelts 651
makeLden 1512
matheadlong 931
matrixnorm 1582
monomorphismratlift 1743
monoratlift 4762
muldiv 0
notgalois 546
numberofconjugates 455
padicisint 32312
permtopol 4718
polheadlong 45311
poltopermtest 3690
s4galoisgen 21
s4makelift 133
s4releveauto 133
s4test 2331
stpow 2380
sympol_aut_evalmod 756
sympol_eval 2086
sympol_eval_newtonsum 2527
sympol_is1to1_lg 1743
testpermutation 1330
vandermondeinverse 2128
vandermondeinversemod 1624
vandermondeinverseprep 2212
vecheadlong 21189
vectopol 5481
wpow 987

Generated by: LCOV version 1.9