florence / cover

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

Extract package module filtering code? #139

Open jackfirth opened 6 years ago

jackfirth commented 6 years ago

I'm working on a project that needs to do something similar to cover, where it finds lists of modules given packages or collections and filters the list based on info.rkt settings. Would it be worthwhile to try and extract cover's implementation of this logic into a package I could reuse?

florence commented 6 years ago

Are you refering to https://github.com/florence/cover/blob/master/cover/raco.rkt#L326 or to the horrible mess of https://github.com/florence/cover/blob/master/cover/raco.rkt#L200?

I think the answer is yes to both, but more so for the second one. I know raco test needs to implement something similar (Some bits of this code were cargo-culted from raco test at some point, but I can't remember which is and which isn't anymore...)

jackfirth commented 6 years ago

The horrible mess :)

There's also the syntax-sloc package which has a raco sloc command that could use this, see AlexKnauth/syntax-sloc#8.