object readable : Keyword
(source)
A helper construct to allow expressing expectations about a path being readable. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
val dir = tempDir.newDirectory("test_dir")
expect(dir) toBe readable
fails {
expect(Paths.get("non_existing_dir")) toBe readable
}