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 - FpXX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16624-25b9976) Lines: 544 584 93.2 %
Date: 2014-06-24 Functions: 66 69 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 238 325 73.2 %

Function Name Sort by function name Hit count Sort by hit count
FpXQXQV_autpow 87
FpXQXQV_autsum 49
FpXQXQ_autpow_mul 2
FpXQXQ_autpow_sqr 87
FpXQXQ_autsum_mul 53
FpXQXQ_autsum_sqr 49
FpXQXQ_div 325
FpXQXQ_inv 325
FpXQXQ_invsafe 325
FpXQXQ_matrix_pow 37
FpXQXQ_mul 3653
FpXQXQ_pow 185
FpXQXQ_powers 90
FpXQXQ_sqr 12776
FpXQXV_prod 91
FpXQX_FpXQXQV_eval 106
FpXQX_FpXQXQ_eval 89
FpXQX_FpXQ_mul 40783
FpXQX_divrem 34108
FpXQX_divrem_Barrett 0
FpXQX_divrem_Barrett_noGC 1230
FpXQX_divrem_Barrettspec 1475
FpXQX_divrem_basecase 51800
FpXQX_extgcd 3780
FpXQX_gcd 2893
FpXQX_invBarrett 1230
FpXQX_invBarrett_Newton 985
FpXQX_invBarrett_basecase 245
FpXQX_mul 68035
FpXQX_mulspec 82805
FpXQX_recipspec 2950
FpXQX_red 114706
FpXQX_rem 21341
FpXQX_rem_Barrett 0
FpXQX_sqr 12946
FpXX_FpX_mul 3671
FpXX_FpX_mulspec 6927
FpXX_Fp_mul 9105
FpXX_add 61120
FpXX_mulu 23150
FpXX_neg 45
FpXX_red 11265
FpXX_sub 7692
FpXX_subspec 1475
FpXYQQ_mul 30
FpXYQQ_pow 1024
FpXYQQ_redswap 80
FpXYQQ_sqr 50
FpXY_FpXQ_evalx 195
FpXY_FpY_mulspec 3256
FpXY_eval 5985
FpXY_evalx 11602
FpXY_evaly 7880
Kronecker_to_FpXQX 90901
Kronecker_to_ZXX 59935
ZXX_copy 80
ZXX_is_ZX 12946
ZXX_is_ZX_spec 178556
ZXX_lgrenormalizespec 20680
ZXX_mul_Kronecker 93475
_FpXQXQ_add 3476
_FpXQXQ_cmul 3671
_FpXQXQ_mul 2610
_FpXQXQ_one 950
_FpXQXQ_red 942
_FpXQXQ_sqr 12486
_FpXQXQ_zero 0
_FpXQX_mul 337
to_FlxqX 31277

Generated by: LCOV version 1.9