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-bordeaux.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 19608-b7b365e) Lines: 1418 1498 94.7 %
Date: 2016-09-26 05:54:43 Functions: 85 87 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 1120
a4galoisgen 21
automorphismlift 1708
aux 399
checkgal 2422
checkgroup 777
chk_perm 1029
conjcyclo 56
embed_disc 19397
embed_roots 1456
fixedfieldfactmod 938
fixedfieldfactor 56
fixedfieldinclusion 553
fixedfieldorbits 1722
fixedfieldsurmer 1834
fixedfieldsympol 1722
freetest 945
frobeniusliftall 672
galois_group 742
galois_test_perm 68607
galoisanalysis 2660
galoisborne 1561
galoisconj 1974
galoisconj0 42
galoisconj1 616
galoisconj4 0
galoisconj4_main 2597
galoiscosets 56
galoisdolift 1575
galoisexport 28
galoisfindfrobenius 1456
galoisfindgroups 350
galoisfixedfield 784
galoisfrobeniuslift 1554
galoisfrobeniustest 1776
galoisgen 1498
galoisgenfixedfield 938
galoisgenliftauto 1176
galoisgrouptopol 441
galoisidentify 392
galoisinit 1491
galoisisabelian 168
galoisisnormal 56
galoismakepsi 504
galoispermtopol 1022
galoispermtopol_i 1505
galoissubfields 42
galoissubgroups 56
get_image 1176
improves 12035
init_group 2660
initgaloisborne 3390
initlift 1575
inittest 945
inittestlift 602
intheadlong 968268
is2sparse 105
is_group 1316
lincomb 3703
listznstarelts 721
makeLden 1477
matheadlong 1120
matrixnorm 2156
monomorphismratlift 1708
monoratlift 5214
muldiv 0
notgalois 1162
numberofconjugates 616
padicisint 33306
permtopol 5012
polheadlong 45612
poltopermtest 3829
s4galoisgen 21
s4makelift 133
s4releveauto 133
s4test 2303
stpow 2758
sympol_aut_evalmod 938
sympol_eval 2310
sympol_eval_newtonsum 2919
sympol_is1to1_lg 1967
testpermutation 1526
vandermondeinverse 3299
vandermondeinverseprep 3390
vecheadlong 22372
vectopol 5873
wpow 1176

Generated by: LCOV version 1.11