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 19230-c71492b) Lines: 1414 1554 91.0 %
Date: 2016-07-30 07:10:28 Functions: 85 89 95.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Vmatrix 1043
a4galoisgen 21
automorphismlift 2331
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 3219
galoisborne 2184
galoisconj 1798
galoisconj0 42
galoisconj1 552
galoisconj2 0
galoisconj2pol 0
galoisconj4 0
galoisconj4_main 3289
galoiscosets 56
galoisdolift 2198
galoisexport 28
galoisfindfrobenius 2079
galoisfindgroups 350
galoisfixedfield 784
galoisfrobeniuslift 2177
galoisfrobeniustest 1753
galoisgen 2121
galoisgenfixedfield 861
galoisgenliftauto 1092
galoisgrouptopol 1071
galoisidentify 392
galoisinit 1491
galoisisabelian 168
galoisisnormal 56
galoismakepsi 497
galoispermtopol 1015
galoispermtopol_i 1477
galoissubfields 42
galoissubgroups 56
get_image 1092
improves 14413
init_group 3219
initgaloisborne 3892
initlift 2198
inittest 868
inittestlift 595
intheadlong 966196
is2sparse 91
is_group 1316
lincomb 3703
listznstarelts 714
makeLden 2100
matheadlong 1043
matrixnorm 2779
monomorphismratlift 2331
monoratlift 5721
muldiv 0
notgalois 1098
numberofconjugates 552
padicisint 32956
permtopol 5950
polheadlong 45584
poltopermtest 4439
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 3801
vandermondeinverseprep 3892
vecheadlong 21994
vectopol 6811
wpow 1092

Generated by: LCOV version 1.11