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 - FpX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16912-212c0f0) Lines: 1013 1106 91.6 %
Date: 2014-10-20 Functions: 131 135 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 481 624 77.1 %

Function Name Sort by function name Hit count Sort by hit count
FpV_inv 2423
FpV_roots_to_pol 4090
FpXC_FpXQV_eval 266
FpXM_FpXQV_eval 105
FpXM_FpX_mul2 453
FpXM_mul2 151
FpXQM_autsum 28
FpXQM_autsum_mul 105
FpXQM_autsum_sqr 70
FpXQ_autpow 513
FpXQ_autpow_mul 7
FpXQ_autpow_sqr 541
FpXQ_autpowers 532
FpXQ_autsum 929
FpXQ_autsum_mul 1816
FpXQ_autsum_sqr 943
FpXQ_charpoly 2865
FpXQ_conjvec 8
FpXQ_div 258428
FpXQ_inv 312429
FpXQ_invsafe 312915
FpXQ_issquare 2386
FpXQ_log 54658
FpXQ_matrix_pow 6455
FpXQ_minpoly 2864
FpXQ_mul 37820217
FpXQ_norm 1
FpXQ_order 36
FpXQ_pow 119965
FpXQ_pow_Frobenius 16025
FpXQ_powers 95686
FpXQ_powu 51028
FpXQ_red 2616222
FpXQ_sqr 2149897
FpXQ_sqrt 1440
FpXQ_sqrtn 2235
FpXQ_trace 10263
FpXT_red 368473
FpXV_prod 16095
FpXV_red 146225
FpX_FpXM_qmul 147
FpX_FpXQV_eval 51513
FpX_FpXQ_eval 150707
FpX_Fp_add 353576
FpX_Fp_add_shallow 0
FpX_Fp_mul 3093862
FpX_Fp_mul_to_monic 50070
FpX_Fp_mulspec 3095016
FpX_Fp_sub 63518
FpX_Fp_sub_shallow 1508
FpX_Frobenius 70367
FpX_add 4714539
FpX_addmulmul 914
FpX_center 504580
FpX_chinese_coprime 665
FpX_deriv 448390
FpX_digits 3416
FpX_disc 14
FpX_div_by_X_x 17658
FpX_divrem 2802846
FpX_divrem_Barrett_noGC 90120
FpX_divrem_Barrettspec 90458
FpX_divrem_basecase 48680431
FpX_eval 475907
FpX_extgcd 337727
FpX_extgcd_basecase 270686
FpX_extgcd_halfgcd 4
FpX_fromdigits 1449
FpX_gcd 86790
FpX_gcd_basecase 18617
FpX_gcd_check 0
FpX_get_red 126296
FpX_halfgcd 347
FpX_halfgcd_basecase 156
FpX_halfgcd_i 303
FpX_halfgcd_split 147
FpX_halve 840
FpX_invBarrett 1638
FpX_invBarrett_Newton 46
FpX_invBarrett_basecase 1584
FpX_is_squarefree 2114
FpX_matFrobenius 2451
FpX_mul 50660734
FpX_mulspec 389058
FpX_mulu 1060907
FpX_neg 135045
FpX_normalize 233656
FpX_powu 959
FpX_recipspec 180962
FpX_red 62456152
FpX_rem 48159786
FpX_rescale 12894
FpX_resultant 4691
FpX_sqr 2182118
FpX_sub 12865199
FpX_subspec 12955657
FpX_valrem 22897
Fp_FpXQ_log 36473
Fp_FpX_sub 16303
Fp_issquare 46578
Fp_neg_FpX 22
Fp_red_FpX 359
FqV_inv 0
Fq_issquare 46578
Fq_log 1253
ZX_lgrenormalizespec 181609
Z_to_FpX 870
_FpXQ_add 486021
_FpXQ_cmul 540309
_FpXQ_easylog 918
_FpXQ_mul 305096
_FpXQ_one 127163
_FpXQ_pow 15594
_FpXQ_rand 2388
_FpXQ_red 132852
_FpXQ_sqr 1650996
_FpXQ_zero 16
_FpX_add 4858
_FpX_divrem 36351
_FpX_mul 51995
_FpX_sqr 13160
bounded_order 3911
famat_Z_gcd 0
gener_FpXQ 6350
gener_FpXQ_i 1352
gener_FpXQ_local 1337
get_FpXQ_star 1282
get_FpX_degree 612132
get_FpX_mod 339387
get_FpX_red 50962632
get_FpX_var 660612
matid2_FpXM 4
random_FpX 30941
to_Flx 36294061
to_Flxq 403576

Generated by: LCOV version 1.9