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.1 lcov report (development 22726-9e20c6a88) Lines: 525 553 94.9 %
Date: 2018-06-23 05:36:28 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 5278
_subcyclo_orbits 30324
bnr_to_znstar 14
factor_Aurifeuille 63
factor_Aurifeuille_aux 5278
factor_Aurifeuille_prime 5215
galoiscyclo 189
galoissubcyclo 238
gscycloconductor 182
lift_check_modulus 98
mod_to_small 1239
muliimod_sz 33796
phi 5278
polsubcyclo 5572
polsubcyclo_complex_bound 5586
polsubcyclo_complex_roots 5586
polsubcyclo_cyclic 10892
polsubcyclo_g 5544
polsubcyclo_orbits 280
polsubcyclo_powz 272328
polsubcyclo_roots 5586
polsubcyclo_start 11053
vecmod_to_vecsmall 959
znstar_bits 0
znstar_conductor 168
znstar_conductor_bits 749
znstar_coset_bits_inplace 700
znstar_coset_func 1400
znstar_cosets 140
znstar_elts 2044
znstar_generate 2247
znstar_hnf 2044
znstar_hnf_elts 2044
znstar_hnf_generators 2121
znstar_order 2324
znstar_partial_bits 3724
znstar_partial_coset_bits 3724
znstar_partial_coset_bits_inplace 4424
znstar_partial_coset_func 5824
znstar_reduce_modulus 35
znstar_small 959

Generated by: LCOV version 1.13