florence / cover

a code coverage tool for racket
MIT License
38 stars 7 forks source link

for-loop variable uncovered #107

Closed bennn closed 8 years ago

bennn commented 8 years ago

When I write & test a simple for-loop, the loop var is considered uncovered: screen shot 2015-09-29 at 11 53 32 pm

Adding an in-list annotation improves my coverage. screen shot 2015-09-29 at 11 53 46 pm

rpless commented 8 years ago

Hi @bennn. I believe this duplicates #27. The issue is currently documented in the Gotcha's section.

florence commented 8 years ago

Yes, this is a known bug in the for loop library. I've tried to fix it but that code is such a tangled nest of macro's and can't figure out why the srcloc gets erased in the first place.

I should probably actually log a bug about that...

florence commented 8 years ago

There, logged at racket/racket#1077

I'm going to close this as a duplicate.

bennn commented 8 years ago

@rpless Gotcha! @florence Thanks for passing the blame

florence commented 8 years ago

@bennn Blame is still mine, turns out its an errortrace bug that I get to fix :P