std.d.lexer: pre-voting review / discussion
Walter Bright
newshound2 at digitalmars.com
Thu Sep 12 17:56:32 PDT 2013
On 9/12/2013 4:57 PM, Brian Schott wrote:
> On Thursday, 12 September 2013 at 23:40:55 UTC, Walter Bright wrote:
>> I strongly recommend running the unit tests with -cov. A lexer should be able
>> to get near 100% coverage with the unit tests.
>
> Some of the code is only present to be used at compile-time to generate switch
> statements inside of the lexer. -cov doesn't show code that's executed at
> compile-time to be covered, and it couldn't show meaningful line numbers on code
> that's generated and mixed in.
That's right.
> That being said, it's currently 70% covered. I'll be making another pass over
> the code later to fill in some of the gaps.
Thanks.
More information about the Digitalmars-d
mailing list