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_factor.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16746-c2cb716) Lines: 1589 1709 93.0 %
Date: 2014-08-31 Functions: 142 152 93.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 861 1136 75.8 %

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 390
F2xV_to_ZXV_inplace 53012
F2x_Berlekamp_i 53007
F2x_Berlekamp_ker 14415
F2x_degfact_2 415
F2x_factcantor 5200
F2x_factcantor_i 6830
F2x_factor 0
F2x_factor_2 21490
F2x_factor_deg2 21910
F2x_is_irred 100
F2x_is_irred_2 5
F2x_quad_factortype 17285
F2x_split 13935
F2x_split_Berlekamp 30582
F2xqX_quad_roots 1160
Fl_disc_bc 160901
Fl_nonsquare 4
Flm_Flx_mul 152375
FlxV_to_ZXV_inplace 300238
Flx_Berlekamp_i 302463
Flx_Berlekamp_ker 146618
Flx_Xn1 9
Flx_Xnm1 14
Flx_addmul_inplace 350929
Flx_cubic_root 10
Flx_cut_out_roots 10
Flx_degfact 106960
Flx_degfact_2 19385
Flx_factcantor 5160
Flx_factcantor_i 121325
Flx_factor 12230
Flx_factor_2 140942
Flx_factor_deg2 160327
Flx_is_irred 415
Flx_is_irred_2 0
Flx_nbfact 25015
Flx_nbfact_by_degree 54475
Flx_nbroots 1576037
Flx_oneroot 450
Flx_oneroot_i 988
Flx_oneroot_mod_2 10
Flx_otherroot 105765
Flx_quad_factortype 19375
Flx_quad_root 141526
Flx_root_mod_2 4095
Flx_roots 0
Flx_roots_i 35096
Flx_roots_naive 10
Flx_split 74235
Flx_split_Berlekamp 163678
Flx_try_pow 39447
FlxqXQ_halfFrobenius 1875
FlxqX_Berlekamp_ker 48
FlxqX_Frobenius 713
FlxqX_nbroots 15
FlxqX_split_part 25
FpXQXQ_halfFrobenius 1833
FpXQX_Berlekamp_ker 50
FpXQX_Frobenius 87
FpXQX_nbfact 0
FpXQX_nbroots 15
FpXQX_split_part 5
FpX_Berlekamp_i 352081
FpX_Berlekamp_ker 57
FpX_degfact 0
FpX_degfact_2 10
FpX_factcantor 0
FpX_factcantor_i 65
FpX_factor 352036
FpX_factor_2 42
FpX_factor_deg2 57
FpX_factorff 0
FpX_factorff_i 180
FpX_is_irred 10
FpX_is_irred_2 5
FpX_is_totally_split 0
FpX_nbfact 20
FpX_nbroots 12647
FpX_oneroot 2070
FpX_oneroot_i 1522
FpX_otherroot 1354
FpX_quad_factortype 15
FpX_quad_root 2883
FpX_roots 40480
FpX_roots_i 1299
FpX_rootsff 0
FpX_rootsff_i 415
FpX_split 310
FpX_split_Berlekamp 137
FpX_split_part 41242
FqXC_roots_from_deg1 190
FqX_Frobenius_eval 1390
FqX_Frobenius_powers 520
FqX_deriv 10715
FqX_factor 455
FqX_factor_i 290
FqX_frob_deflate 45
FqX_is_squarefree 330
FqX_nbfact 0
FqX_nbroots 830
FqX_quad_roots 1375
FqX_rand 1823
FqX_roots 3625
FqX_roots_i 2025
FqX_split 2755
FqX_split_Berlekamp 50
FqX_split_Trager 25
FqX_split_all 40
FqX_split_by_degree 200
FqX_split_deg1 335
FqX_split_equal 255
FqX_split_roots 210
FqX_sqf_split 10
Mod0pX 10
ZX_factmod_init 394596
add 495
all_roots_mod_p 25
cmpGuGu 971055
deg1_Flx 76252
factcantor 40
factcantor0 65
factmod 55
factmod_aux 120
factmod_init 175
factorff 205
factormod0 65
ffcheck 205
isabsolutepol 2305
polrootsff 50
prime_fact 25
rootmod 45
rootmod0 50
rootmod2 10
rootmod_aux 40535
simplefactmod 25
split_Flx_cut_out_roots 12225
split_add 7859
split_add_done 17609
split_done 5097
split_init 13524
split_moveto_done 7859
split_nonsquares 13
split_squares 13
split_todo 6114
to_Fq 6830
to_FqC 25
to_Fq_fact 180
to_Fq_pol 3125
trivial_fact 325
try_pow 165
zero_fact_intmod 10

Generated by: LCOV version 1.9