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 - perm.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21925-0da0e71) Lines: 653 701 93.2 %
Date: 2018-02-21 06:16:18 Functions: 75 79 94.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
cyc_pow_perm 0
groupelts_abelian_group 0
groupelts_exponent 0
vecsmall_duplicate_sorted 0
perm_mul_inplace2 7
group_export_GAP 14
group_export_MAGMA 14
perm_to_GAP 21
vecvecsmall_indexsort 21
group_export 28
group_subgroup_isnormal 56
permorder 91
permsign 98
vecvecsmall_max 133
abelian_group 189
group_abelianSNF 280
group_abelianHNF 329
vecvecsmall_sort_uniq 392
subgroups_tableset 462
groupelts_center 693
vecperm_orbits 847
group_isabelian 917
dicyclicgroup 945
vecsmall_uniq 1380
vecsmall_uniq_sorted 1450
perm_to_Z 1680
perm_to_Z_inplace 1701
permtonum 1708
cyc_pow 1890
isperm 1890
tableset_find_index 1897
vec_is1to1 2709
galois_elts_sorted 3738
perm_cycles 4032
conjclasses_repr 4109
groupelts_conjclasses 4109
group_to_cc 4123
group_isA4S4 4928
quotient_group 5103
group_quotient 5110
vec_isconst 5684
Z_to_perm 5915
numtoperm 5915
group_subgroups 6167
group_domain 6559
cyclicgroup 6993
perm_generate 8064
perm_pow 8330
quo_get_coset 12194
quotient_perm 12194
groupelts_set 13167
vecsmall_duplicate 13984
sgcmp 16646
liftsubgroup 29477
quotient_subgroup_lift 29477
trivialgroup 30716
trivialsubgroups 30716
liftlistsubgroups 44877
group_set 58121
group_perm_normalize 60459
group_rightcoset 60459
group_elts 70637
quo_get_gen 76251
vec_insert 97538
vecvecsmall_sort 121030
perm_relorder 122696
group_leftcoset 136402
perm_sign 169670
group_order 318136
perm_order 382620
grp_get_gen 432187
perm_commute 536732
vecperm_orbits_i 557165
grp_get_ord 737604
vecsmall_indexsort 2865074
vecsmall_sort 18366435
vecvecsmall_search 19730179
vecsmall_indexsortspec 20971347
vecsmall_sortspec 95650988

Generated by: LCOV version 1.11