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 - char.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.1 lcov report (development 22726-9e20c6a88) Lines: 783 805 97.3 %
Date: 2018-06-23 05:36:28 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
zncharker 21
charconj0 28
charker0 28
get_chi 35
bnr_coprime 42
chardiv0 42
charpow0 63
charpow 147
charmul0 154
charorder0 168
zncharpow 168
znlog0 280
get_cyc 483
zncharconductor 616
zncharconj 651
znchardecompose 784
znchartoprimitive 840
znchartokronecker 847
not_coprime 1855
charconj 2604
znchar 3143
chareval 3598
chardiv 4193
znchardiv 4200
coprime_tables 5145
cyc2elts_normal 5145
chargalois 5404
znstar 6629
Zideallog 6720
zncharinduce 8603
ncharvecexpo 26208
zv_cyc_minimize 28357
znconreychar 28490
charker 39802
char_check 40971
znconreyexp 50365
znstar0 55685
coprimes_zv 60641
zv_cyc_minimal 77721
zv_charorder 77847
znconreyfromchar 110285
znconreyfromchar_normalized 111419
Zideallog_2k 125734
cyc_normalize 155120
char_normalize 156639
char_simplify 157325
zncharisodd 177177
zncharcheck 187012
lcmuu 190162
charmul 301987
zncharmul 301994
Zideallog_pk 302967
znchar_quad 303415
zncharorder 371252
charorder 372785
chareval_i 447475
znchareval 449281
znconreylog 471688
znconreyconductor 485135
znconrey_normalized 491043
znconreylog_normalize 500787
znconrey_check 668864
checkznstar_i 1209978

Generated by: LCOV version 1.13