kotest-assertions-core / io.kotest.matchers.file

Package io.kotest.matchers.file

Extensions for External Classes

java.io.File

java.nio.file.Path

Functions

aDirectory

fun aDirectory(): Matcher<File>

aFile

fun aFile(): Matcher<File>

beAbsolute

fun beAbsolute(): Matcher<File>

beCanonicalPath

fun beCanonicalPath(): Matcher<File>

beExecutable

fun beExecutable(): Matcher<File>

beHidden

fun beHidden(): Matcher<File>

beLarger

fun beLarger(other: File): Matcher<File>

beNonEmptyDirectory

fun beNonEmptyDirectory(): Matcher<File>

beReadable

fun beReadable(): Matcher<File>

beRelative

fun beRelative(): Matcher<File>

beSmaller

fun beSmaller(other: File): Matcher<File>

beWriteable

fun beWriteable(): Matcher<File>

containFile

fun containFile(name: String): Matcher<File>

containNFiles

fun containNFiles(n: Int): Matcher<File>

emptyFile

fun emptyFile(): Matcher<File>

exist

fun exist(): Matcher<File>

haveExtension

fun haveExtension(vararg exts: String): Matcher<File>

haveFileSize

fun haveFileSize(size: Long): Matcher<File>

haveName

fun haveName(name: String): Matcher<File>

haveParent

fun haveParent(name: String): Matcher<File>

havePath

fun havePath(name: String): Matcher<File>

startWithPath

fun startWithPath(path: Path): Matcher<File>
fun startWithPath(file: File): Matcher<File>
fun startWithPath(prefix: String): Matcher<File>