std.d.lexer: pre-voting review / discussion

Brian Schott briancschott at gmail.com
Thu Sep 12 16:57:38 PDT 2013


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 being said, it's currently 70% covered. I'll be making 
another pass over the code later to fill in some of the gaps.


More information about the Digitalmars-d mailing list