← Back to index
|
Original Bugzilla link
Bug 14825 – Coverage analyzer should mark uninstantiated template code lines
Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-07-25T21:19:32Z
Last change time
2024-12-13T18:43:51Z
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=9721
Moved to GitHub: dmd#19018 →
Comments
Comment #0
by bugzilla — 2015-07-25T21:19:32Z
http://www.digitalmars.com/d/archives/digitalmars/D/Rant_after_trying_Rust_a_bit_268458.html#N268741
A coverage report: =============================== |void foo (T) () |{ | import std.stdio; | static if (is(T == int)) 1| writeln("1"); | else | writeln("2"); |} | |unittest |{ 1| foo!int(); |} | foo.d is 100% covered ============================ The 'writeln("2");' should be marked as not covered.
Comment #1
by public — 2015-07-26T20:17:23Z
That will greatly improve ability to ensure good coverage level on automated basis.
Comment #2
by robert.schadek — 2024-12-13T18:43:51Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19018
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB