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 - subcyclo.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16746-c2cb716) Lines: 527 563 93.6 %
Date: 2014-08-31 Functions: 38 39 97.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 276 348 79.3 %

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 3750
_subcyclo_orbits 19360
bnr_to_znstar 10
factor_Aurifeuille 45
factor_Aurifeuille_aux 3750
factor_Aurifeuille_prime 3705
galoiscyclo 30
galoissubcyclo 80
gscycloconductor 50
lift_check_modulus 10
muliimod_sz 13275
phi 3750
polsubcyclo 1530
polsubcyclo_complex_bound 1515
polsubcyclo_complex_roots 1515
polsubcyclo_cyclic 2940
polsubcyclo_g 1510
polsubcyclo_orbits 90
polsubcyclo_powz 138060
polsubcyclo_roots 1515
polsubcyclo_start 5295
vecmod_to_vecsmall 490
znstar_bits 0
znstar_conductor 50
znstar_coset_bits_inplace 160
znstar_coset_func 320
znstar_cosets 45
znstar_elts 1050
znstar_generate 1125
znstar_hnf 1050
znstar_hnf_elts 1050
znstar_hnf_generators 1095
znstar_order 1140
znstar_partial_bits 1920
znstar_partial_coset_bits 1920
znstar_partial_coset_bits_inplace 2080
znstar_partial_coset_func 2400
znstar_reduce_modulus 25
znstar_small 490

Generated by: LCOV version 1.9