Re: [eigen] Code coverage and templates

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


This SO answer
http://stackoverflow.com/a/19792966
suggests that explicitly instantiating the template classes to be tested should work.

Christoph

Am 09.02.2015 um 10:59 schrieb Gael Guennebaud:
Hi,

does anyone know how to get better code coverage outputs from gcov in the
case of inlining and templates? In particular, we should find a way to
include *all* functions. For instance, the specialization of
Block<SparseMatrix> included a few un-tested and un-compiled functions even
though gcov returns a coverage of 100%. See:

http://manao.inria.fr/CDash/viewCoverageFile.php?buildid=17299&fileid=282195

lines 169-187. Incidentally, some of these functions were broken...

thanks,
gael



--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/