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 - arith1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19070-36a960b) Lines: 2633 2844 92.6 %
Date: 2016-06-30 Functions: 229 243 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1796 2317 77.5 %

Function Name Sort by function name Hit count Sort by hit count
Fl_2gener_pre_all 8122769
Fl_lgener_pre_all 15448
Fl_order 5117
Fl_powers 1520
Fl_powers_pre 3601741
Fl_powu 60237885
Fl_powu_pre 68699536
Fl_sqrt 19262712
Fl_sqrt_i 19976801
Fl_sqrt_pre 718819
Fl_sqrtl 0
Fl_sqrtl_i 43170
Fl_sqrtl_pre 43170
Fp_dblsqr 386643
Fp_easylog 218800
Fp_factored_order 56
Fp_invmBarrett 5164
Fp_ispower 210
Fp_log 205971
Fp_log_find_ind 98
Fp_log_find_rel 266
Fp_log_halfgcd 61670
Fp_log_index 49
Fp_log_sieve_h 36862
Fp_log_use_index 193006
Fp_order 11157
Fp_pow 2490426
Fp_powers 1624
Fp_pows 20986
Fp_powu 828107
Fp_rem_mBarrett 316683
Fp_select_red 312448
Fp_sqrt 1645530
Fp_sqrtn 2919
Hspec 36750
Qp_ispower 1113
Qsfcont 359468
Shanks_order 429939
U2_issquare 2373
Up_ispower 294
Up_issquare 4690
ZT_sqr 909493
ZV_allpnqn 352730
ZV_chinese 103366
ZV_chinese_tree 46257
ZV_chinesetree 151110
ZV_invdivexact 151109
ZV_polint_center_tree 1294145
ZV_polint_tree 1431054
ZV_producttree 151109
ZV_sqr 151109
ZX_nv_mod_tree 58311
Z_ZV_mod 0
Z_ZV_mod_tree 771680
Z_chinese 2142
Z_chinese_all 368613
Z_chinese_coprime 83153
Z_chinese_post 544290
Z_chinese_pre 387212
Z_factor_listP 350651
Z_isanypower 7000630
Z_isanypower_aux 7000630
Z_isanypower_nosmalldiv 864316
Z_isfundamental 15057
Z_ispow2 31157
Z_ispowerall 1498
Z_issquareall 3349431
Z_nv_mod 0
Zn_ispower 322
Zn_issquare 2548
Zp_issquare 0
Zp_order 70
_Fp_add 944352
_Fp_equal0 526253
_Fp_inv 18323
_Fp_mul 167311
_Fp_neg 103113
_Fp_one 104
_Fp_pow 617797
_Fp_rand 413
_Fp_red 935783
_Fp_rmul 1181019
_Fp_s 82540
_Fp_sqr 948
_mul2_montred 809927
_mul2_remii 382407
_mul2_remiibar 4236
_mul_montred 1238045
_mul_remii 240722
_mul_remiibar 8403
_psi 1367
_sqr_montred 11846587
_sqr_remii 3629743
_sqr_remiibar 308280
addifsmooth1 37401
addifsmooth2 253358
bestappr 8024
bestapprPade 63
bestappr_Q 292503
bestappr_RgX 63
bestappr_frac 0
bestappr_real 198357
bestappr_real_max 21
bestappr_ser 49
carremod 8756105
check_kernel 49
chinese 16520
chinese1 49
chinese1_coprime_Z 101967
chinese1_coprime_Z_aux 73659
chinese_intpol 21
classno 430435
classno2 21
conductor_part 429911
contfrac0 49
contfracpnqn 126
corediscfact 470106
eps 18445
equal1 518
err_oo 56
err_p 161
err_prec 196
fibo 7
find_order 580001
gboundcf 359473
gc_chinese 151108
gcf 0
gcf2 0
gen_chinese 102016
gener_Zp 287
geomsum 6083
get_Fp_field 4557
get_PHI 84
get_forms 429890
get_quad 14
gisanypower 7000161
gissquare 0
gissquareall 0
gome 3129861
handle_pe 434
hclassno 48902
hclassno2 3445
hilbert 658
hilbertii 53144
icopy_lg 359179
init_montdata 239665
is_gener_Fl 53288
is_gener_Fp 149
is_gener_expo 33
isfundamental 14497
ispolygonal 1386
ispower 7002947
isprimepower 840098
isprimepower_i 841629
ispseudoprimepower 1531
issquare 143024
issquareall 146174
istotient 70000
istotient_i 621565
krois 28343
kroiu 84468190
kronecker 5009967
krosi 30840
kross 5113357
kroui 119
krouodd 30959
krouu 37698599
krouu_s 132349606
lcmii 3385359
lift_intmod 420
lift_padic 210
logint 343931
logint0 42
lucas 56
mod_to_frac 35
mod_to_rfrac 56
mpfact 2236947
mphilbertoo 9982
muls_interval 161
mulu_interval 941757
myh 36750
ncV_chinese_center 934
ncV_polint_center_tree 12027
nmV_chinese_center 553
nmV_polint_center_tree 553
nmV_polint_center_tree_worker 11092
odd_prime_divisors 42
ok_q 1539
ome 210690985
opt_param 49
order 0
pgener_Fl 43706
pgener_Fl_local 51972
pgener_Fp 7042
pgener_Fp_local 7574
pgener_Zl 3916
pgener_Zp 3920
pnqn 0
polispower 497
polissquareall 1603
polmodispower 126
qfb_equal1 1779929
qfbclassno0 140
qfi_Shanks 76022
qfi_comp 4832022
qfi_log 0
qfi_order 258005
qfi_pow 2844054
quaddisc 7
quadregulator 21
quadunit 7
ramanujantau 7035
relative_order 112
remove2 42
rootsof1_Fl 1680
rootsof1_Fp 0
rootsof1u_Fp 301
sersfcont 0
sfcont2 14
sisfundamental 1078
split_exponent 505729
split_lcm 74968
sqr_primeform 8167485
sqrt_Cipolla 8
sqrt_Cipolla_msqr 23
sqrt_Cipolla_sqr 449
sqrtint 38669
tauprime 14903
two_rank 429890
u_is_gener_expo 21502
u_odd_prime_divisors 21264
u_remove2 21264
uisprimepower 541663
uissquare 115438
uissquareall 8590206
unegisfundamental 10937
update_f 14
update_g1 74968
uposisfundamental 7209
znlog 217
znlog_rec 112
znorder 63
znprimroot 357

Generated by: LCOV version 1.9