Nuramon
15 years agoOccasional Contributor
Coverage Profiling - Delphi 2010 - Problems with Generics
Hello everyone,
We have encountered some problems with coverage profiling for Delphi 2010 in units which use Generics. I was able to reproduce the unexpected (wrong?) results it in the Delphi-Project attached to this posting. The problems are:
Are we doing anything wrong? Or are there known issues in AQtime with Delphi & Generics?
Thanks for help.
Best regards
Thomas
We have encountered some problems with coverage profiling for Delphi 2010 in units which use Generics. I was able to reproduce the unexpected (wrong?) results it in the Delphi-Project attached to this posting. The problems are:
- The constructor of generic classes is not covered correctly in the "Editor"-view (in the example attached: constructor of class TBag). It seems that the green dots for the constructor are moved down some rows (see screenshot "Error_1.gif"). In the "Report"-Table the method is listed as fully covered (100%), which is the right result. So maybe it is just a display error. If I remove the generic-parameter from the class everything works correctly.
- Methods with generic parameters are not listed as covered code at all (in the example attached: method Exchange() of class TGenericMethod, respectively see screenshot "Error_2.gif"). The code is definitly called by the executable.
Are we doing anything wrong? Or are there known issues in AQtime with Delphi & Generics?
Thanks for help.
Best regards
Thomas