digitalmars.D - Strange -cov bug
- H. S. Teoh via Digitalmars-d (10/10) Jul 06 2017 Recently I discovered a strange bug in dmd -cov, that I finally got some
- =?UTF-8?Q?Ali_=c3=87ehreli?= (9/17) Jul 06 2017 Sorry, not helping but rambling below...
Recently I discovered a strange bug in dmd -cov, that I finally got some time today to reduce to a smallish test case. However, I can't seem to get rid of the dependency on std.stdio; anybody has any idea how to reduce this code further? https://issues.dlang.org/show_bug.cgi?id=17613 This is a very strange bug where decreasing code coverage actually increases the reported coverage percentage. :-P T -- LINUX = Lousy Interface for Nefarious Unix Xenophobes.
Jul 06 2017
On 07/06/2017 10:58 AM, H. S. Teoh via Digitalmars-d wrote:Recently I discovered a strange bug in dmd -cov, that I finally got some time today to reduce to a smallish test case. However, I can't seem to get rid of the dependency on std.stdio; anybody has any idea how to reduce this code further? https://issues.dlang.org/show_bug.cgi?id=17613 This is a very strange bug where decreasing code coverage actually increases the reported coverage percentage. :-P TSorry, not helping but rambling below... Yep, not surprising that conditional expression has such issues. The last time I checked Python code for coverage, they were missing uncovered branch of the conditional expression. [And saying this without testing.] Additionally, what about lazily evaluated sub-expressions like function arguments? So, per-line coverage is not sufficient anyway. Ali
Jul 06 2017