Determines whether the passed thing is readable, i.e., the passed file is readable.
Determines whether the passed thing is readable, i.e., the passed file is readable.
the thing to check for readability
true
if the passed thing is readable, false
otherwise
Supertrait for typeclasses that enable the
be readable
matcher syntax.A
Readability[T]
provides access to the "readable nature" of typeT
in such a way thatbe readable
matcher syntax can be used with typeT
. AT
can be any type for which the concept of being readable makes sense, such asjava.io.File
. You can enable thebe readable
matcher syntax on your own typeU
by defining aReadability[U]
for the type and making it available implicitly.ScalaTest provides an implicit
Readability
instance forjava.io.File
and arbitary object withisReadable()
orisReadable
in theReadability
companion object.