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 - subcyclo.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18948-dd2a64a) Lines: 528 565 93.5 %
Date: 2016-05-28 Functions: 38 39 97.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 277 350 79.1 %

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 5264
_subcyclo_orbits 27636
bnr_to_znstar 14
factor_Aurifeuille 63
factor_Aurifeuille_aux 5264
factor_Aurifeuille_prime 5201
galoiscyclo 154
galoissubcyclo 196
gscycloconductor 147
lift_check_modulus 91
muliimod_sz 22281
phi 5264
polsubcyclo 2989
polsubcyclo_complex_bound 3017
polsubcyclo_complex_roots 3017
polsubcyclo_cyclic 5796
polsubcyclo_g 2961
polsubcyclo_orbits 238
polsubcyclo_powz 214424
polsubcyclo_roots 3017
polsubcyclo_start 8435
vecmod_to_vecsmall 742
znstar_bits 0
znstar_conductor 147
znstar_coset_bits_inplace 364
znstar_coset_func 728
znstar_cosets 119
znstar_elts 1582
znstar_generate 1764
znstar_hnf 1582
znstar_hnf_elts 1582
znstar_hnf_generators 1645
znstar_order 1820
znstar_partial_bits 2961
znstar_partial_coset_bits 2961
znstar_partial_coset_bits_inplace 3325
znstar_partial_coset_func 4053
znstar_reduce_modulus 35
znstar_small 742

Generated by: LCOV version 1.9