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 to exceed 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.12.0 lcov report (development 23339-b1c33c51a) Lines: 525 553 94.9 %
Date: 2018-12-11 05:41:34 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
znstar_bits 0
bnr_to_znstar 14
znstar_reduce_modulus 35
factor_Aurifeuille 63
lift_check_modulus 98
znstar_cosets 140
znstar_conductor 168
gscycloconductor 182
galoiscyclo 189
galoissubcyclo 238
polsubcyclo_orbits 280
znstar_coset_bits_inplace 700
znstar_conductor_bits 749
vecmod_to_vecsmall 987
znstar_small 987
mod_to_small 1267
znstar_coset_func 1400
znstar_elts 2100
znstar_hnf 2100
znstar_hnf_elts 2100
znstar_hnf_generators 2177
znstar_generate 2303
znstar_order 2380
znstar_partial_bits 3808
znstar_partial_coset_bits 3808
znstar_partial_coset_bits_inplace 4508
factor_Aurifeuille_prime 5215
Aurifeuille_init 5278
factor_Aurifeuille_aux 5278
phi 5278
polsubcyclo_g 5635
polsubcyclo 5663
polsubcyclo_complex_bound 5677
polsubcyclo_complex_roots 5677
polsubcyclo_roots 5677
znstar_partial_coset_func 5908
polsubcyclo_cyclic 11074
polsubcyclo_start 11144
_subcyclo_orbits 30324
muliimod_sz 34209
polsubcyclo_powz 273980

Generated by: LCOV version 1.13