I am now using lein cloverage to test the paths I haven't tested yet in babashka/fs :P
But. How can you test paths on eg my computer?!?!??
user=> (first (filter fs/executable? (fs/list-dirs (filter fs/exists? (fs/exec-path)) "java")))
#object[sun.nio.fs.UnixPath 0x27b2faa6 "/Users/borkdude/.jenv/versions/11.0/bin/java"]
user=> (fs/which "java")
#object[sun.nio.fs.UnixPath 0x2a685eba "/Users/borkdude/.jenv/versions/11.0/bin/java"]
:-DKidding aside, this is pretty useful.
What does orange mean?
The path is hit, but not often?
Orange might mean that not all branches are hit (e.g. in if/or/case/...)?
Yeah I think thatโs it @yannick.scherer, looks like orange means โhttps://github.com/cloverage/cloverage/blob/bd40ee2614fef3242e5bbc916650f3ebe82b99d6/cloverage/src/coverage.css#L11-L14โ.