clj-commons

borkdude 2021-02-06T10:14:20.024300Z

I am now using lein cloverage to test the paths I haven't tested yet in babashka/fs :P

slipset 2021-02-06T11:33:52.025Z

But. How can you test paths on eg my computer?!?!??

๐Ÿ˜† 1
borkdude 2021-02-06T11:36:11.025800Z

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"]
:-D

borkdude 2021-02-06T11:42:52.026100Z

Kidding aside, this is pretty useful.

borkdude 2021-02-06T11:49:45.026600Z

What does orange mean?

borkdude 2021-02-06T11:49:50.026800Z

The path is hit, but not often?

xsc 2021-02-06T12:50:22.029100Z

Orange might mean that not all branches are hit (e.g. in if/or/case/...)?

lread 2021-02-06T17:59:48.029800Z

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โ€.