clj-commons 2021-02-06

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?!?!??

๐Ÿ˜† 1

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

Kidding 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/...)?