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

Package io.kotest.matchers.paths

Extensions for External Classes

java.nio.file.Path

Functions

aDirectory

fun aDirectory(): Matcher<Path>

aFile

fun aFile(): Matcher<Path>

beAbsolute

fun beAbsolute(): Matcher<Path>

beCanonicalPath

fun beCanonicalPath(): Matcher<Path>

beExecutable

fun beExecutable(): Matcher<Path>

beHidden

fun beHidden(): Matcher<Path>

beLarger

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

beReadable

fun beReadable(): Matcher<Path>

beRelative

fun beRelative(): Matcher<Path>

beSmaller

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

beSymbolicLink

fun beSymbolicLink(): Matcher<Path>

beWriteable

fun beWriteable(): Matcher<Path>

containFile

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

containFileDeep

fun containFileDeep(name: String): Matcher<Path>

containFiles

fun containFiles(names: List<String>): Matcher<Path>

exist

fun exist(): Matcher<Path>

haveExtension

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

haveFileSize

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

haveParent

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

startWithPath

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