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.10.0 lcov report (development 20443-183d202) Lines: 525 553 94.9 %
Date: 2017-03-27 05:17:48 Functions: 38 39 97.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 3770
_subcyclo_orbits 20460
bnr_to_znstar 10
factor_Aurifeuille 45
factor_Aurifeuille_aux 3770
factor_Aurifeuille_prime 3725
galoiscyclo 120
galoissubcyclo 145
gscycloconductor 110
lift_check_modulus 70
muliimod_sz 16485
phi 3770
polsubcyclo 2210
polsubcyclo_complex_bound 2235
polsubcyclo_complex_roots 2235
polsubcyclo_cyclic 4290
polsubcyclo_g 2190
polsubcyclo_orbits 180
polsubcyclo_powz 156860
polsubcyclo_roots 2235
polsubcyclo_start 6125
vecmod_to_vecsmall 625
znstar_bits 0
znstar_conductor 110
znstar_coset_bits_inplace 440
znstar_coset_func 880
znstar_cosets 90
znstar_elts 1360
znstar_generate 1495
znstar_hnf 1360
znstar_hnf_elts 1360
znstar_hnf_generators 1405
znstar_order 1540
znstar_partial_bits 2490
znstar_partial_coset_bits 2490
znstar_partial_coset_bits_inplace 2930
znstar_partial_coset_func 3810
znstar_reduce_modulus 25
znstar_small 625

Generated by: LCOV version 1.11