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.0 lcov report (development 21913-852521c) Lines: 783 805 97.3 %
Date: 2018-02-19 06:15:51 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 574
znchartoprimitive 581
zncharconj 595
znchardecompose 784
znchartokronecker 826
not_coprime 1855
charconj 2653
znchar 2968
chareval 3598
chardiv 3878
znchardiv 3885
znstar 4459
coprime_tables 5110
cyc2elts_normal 5110
chargalois 5348
Zideallog 6720
zncharinduce 7616
ncharvecexpo 18480
zv_cyc_minimize 27979
znconreychar 28112
charker 39886
char_check 40992
Zideallog_2k 41734
znconreyexp 48342
znstar0 51016
coprimes_zv 59962
zv_cyc_minimal 77546
zv_charorder 77672
znconreyfromchar 109907
znconreyfromchar_normalized 110978
cyc_normalize 154903
char_normalize 156380
char_simplify 157101
zncharisodd 175672
zncharcheck 184520
lcmuu 189756
Zideallog_pk 244244
chareval_i 290647
znchareval 292453
charmul 301546
zncharmul 301553
znchar_quad 303044
znconreylog 308196
znconrey_normalized 332395
znconreylog_normalize 335916
zncharorder 369397
charorder 370930
znconreyconductor 473102
znconrey_check 654444
checkznstar_i 1028692

Generated by: LCOV version 1.11