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 18946-c0ba5ba) Lines: 1421 1554 91.4 %
Date: 2016-05-26 Functions: 85 89 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 838 1077 77.8 %

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 1043
a4galoisgen 21
automorphismlift 2324
aux 399
checkgal 2415
checkgroup 777
chk_perm 1029
conjcyclo 182
embed_disc 19397
embed_roots 1335
fixedfieldfactmod 861
fixedfieldfactor 56
fixedfieldinclusion 553
fixedfieldorbits 1645
fixedfieldsurmer 1757
fixedfieldsympol 1645
freetest 868
frobeniusliftall 665
galois_group 742
galois_test_perm 68523
galoisanalysis 3205
galoisborne 2177
galoisconj 1784
galoisconj0 42
galoisconj1 545
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 3275
galoiscosets 56
galoisdolift 2191
galoisexport 28
galoisfindfrobenius 2072
galoisfindgroups 350
galoisfixedfield 784
galoisfrobeniuslift 2170
galoisfrobeniustest 1753
galoisgen 2114
galoisgenfixedfield 861
galoisgenliftauto 1092
galoisgrouptopol 1064
galoisidentify 392
galoisinit 1491
galoisisabelian 168
galoisisnormal 56
galoismakepsi 497
galoispermtopol 1015
galoispermtopol_i 1477
galoissubfields 42
galoissubgroups 56
get_image 1092
improves 14378
init_group 3205
initgaloisborne 3885
initlift 2191
inittest 868
inittestlift 595
intheadlong 966196
is2sparse 91
is_group 1316
lincomb 3703
listznstarelts 714
makeLden 2093
matheadlong 1043
matrixnorm 2772
monomorphismratlift 2324
monoratlift 5714
muldiv 0
notgalois 1091
numberofconjugates 545
padicisint 32956
permtopol 5936
polheadlong 45584
poltopermtest 4432
s4galoisgen 21
s4makelift 133
s4releveauto 133
s4test 2303
stpow 2590
sympol_aut_evalmod 861
sympol_eval 2226
sympol_eval_newtonsum 2814
sympol_is1to1_lg 1883
testpermutation 1442
vandermondeinverse 3794
vandermondeinverseprep 3885
vecheadlong 21994
vectopol 6797
wpow 1092

Generated by: LCOV version 1.9