]> ocean-lang.org Git - ocean/commit
scanner: hide impossible code from coverage testing.
authorNeilBrown <neil@brown.name>
Sun, 9 Jun 2019 00:03:44 +0000 (10:03 +1000)
committerNeilBrown <neil@brown.name>
Sun, 9 Jun 2019 00:11:03 +0000 (10:11 +1000)
commita98df22daa1e3e2ef80ecea149cbe286ff7fdbf1
treee59e107a58fe801347ac0d2febe4d837151d051b
parentba777227310b9a690dae52fce75b89588f6d7847
scanner: hide impossible code from coverage testing.

The code in "white space" section is truly impossible, as
we don't return WEOF untile ->node is NULL, and when that
happens, ->col is set to 0.

Other code is only "mostly dead".

This brings coverage to 95%

Signed-off-by: NeilBrown <neil@brown.name>
csrc/scanner-tests.mdc
csrc/scanner.mdc