kotest-assertions-core / io.kotest.matchers.paths / java.nio.file.Path

Extensions for java.nio.file.Path

shouldBeAbsolute

fun Path.shouldBeAbsolute(): Unit

shouldBeADirectory

fun Path.shouldBeADirectory(): Unit

shouldBeAFile

fun Path.shouldBeAFile(): Unit

shouldBeCanonical

fun Path.shouldBeCanonical(): Unit

shouldBeExecutable

fun Path.shouldBeExecutable(): Unit

shouldBeHidden

fun Path.shouldBeHidden(): Unit

shouldBeLarger

infix fun Path.shouldBeLarger(other: Path): Unit
infix fun Path.shouldBeLarger(other: File): Unit

shouldBeNonEmptyDirectory

fun Path.shouldBeNonEmptyDirectory(): Unit

shouldBeReadable

fun Path.shouldBeReadable(): Unit

shouldBeRelative

fun Path.shouldBeRelative(): Unit

shouldBeSmaller

infix fun Path.shouldBeSmaller(other: Path): Unit
infix fun Path.shouldBeSmaller(other: File): Unit

shouldBeSymbolicLink

fun Path.shouldBeSymbolicLink(): Unit

shouldBeWriteable

fun Path.shouldBeWriteable(): Unit

shouldContainFile

infix fun Path.shouldContainFile(name: String): Unit

shouldContainFileDeep

infix fun Path.shouldContainFileDeep(name: String): Unit

shouldContainFiles

fun Path.shouldContainFiles(vararg files: String): Unit

shouldContainNFiles

infix fun Path.shouldContainNFiles(n: Int): Unit

shouldExist

fun Path.shouldExist(): Unit

shouldHaveExtension

fun Path.shouldHaveExtension(vararg exts: String): Unit

shouldHaveFileSize

infix fun Path.shouldHaveFileSize(size: Long): Unit

shouldHaveParent

infix fun Path.shouldHaveParent(name: String): Unit

shouldNotBeAbsolute

fun Path.shouldNotBeAbsolute(): Unit

shouldNotBeADirectory

fun Path.shouldNotBeADirectory(): Unit

shouldNotBeAFile

fun Path.shouldNotBeAFile(): Unit

shouldNotBeCanonical

fun Path.shouldNotBeCanonical(): Unit

shouldNotBeExecutable

fun Path.shouldNotBeExecutable(): Unit

shouldNotBeHidden

fun Path.shouldNotBeHidden(): Unit

shouldNotBeLarger

infix fun Path.shouldNotBeLarger(other: Path): Unit
infix fun Path.shouldNotBeLarger(other: File): Unit

shouldNotBeNonEmptyDirectory

fun Path.shouldNotBeNonEmptyDirectory(): Unit

shouldNotBeReadable

fun Path.shouldNotBeReadable(): Unit

shouldNotBeRelative

fun Path.shouldNotBeRelative(): Unit

shouldNotBeSmaller

infix fun Path.shouldNotBeSmaller(other: Path): Unit
infix fun Path.shouldNotBeSmaller(other: File): Unit

shouldNotBeSymbolicLink

fun Path.shouldNotBeSymbolicLink(): Unit

shouldNotBeWriteable

fun Path.shouldNotBeWriteable(): Unit

shouldNotContainFile

infix fun Path.shouldNotContainFile(name: String): Unit

shouldNotContainFileDeep

infix fun Path.shouldNotContainFileDeep(name: String): Unit

shouldNotContainFiles

fun Path.shouldNotContainFiles(vararg files: String): Unit

shouldNotContainNFiles

infix fun Path.shouldNotContainNFiles(n: Int): Unit

shouldNotExist

fun Path.shouldNotExist(): Unit

shouldNotHaveExtension

fun Path.shouldNotHaveExtension(vararg exts: String): Unit

shouldNotHaveFileSize

infix fun Path.shouldNotHaveFileSize(size: Long): Unit

shouldNotHaveParent

infix fun Path.shouldNotHaveParent(name: String): Unit

shouldNotStartWithPath

infix fun Path.shouldNotStartWithPath(file: File): Unit
infix fun Path.shouldNotStartWithPath(prefix: String): Unit
infix fun Path.shouldNotStartWithPath(path: Path): Unit

shouldStartWithPath

infix fun Path.shouldStartWithPath(file: File): Unit
infix fun Path.shouldStartWithPath(prefix: String): Unit
infix fun Path.shouldStartWithPath(path: Path): Unit