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

Extensions for java.io.File

shouldBeAbsolute

fun File.shouldBeAbsolute(): Unit

shouldBeADirectory

fun File.shouldBeADirectory(): Unit

shouldBeAFile

fun File.shouldBeAFile(): Unit

shouldBeCanonical

fun File.shouldBeCanonical(): Unit

shouldBeEmpty

fun File.shouldBeEmpty(): Unit

shouldBeExecutable

fun File.shouldBeExecutable(): Unit

shouldBeHidden

fun File.shouldBeHidden(): Unit

shouldBeLarger

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

shouldBeNonEmptyDirectory

fun File.shouldBeNonEmptyDirectory(): Unit

shouldBeReadable

fun File.shouldBeReadable(): Unit

shouldBeRelative

fun File.shouldBeRelative(): Unit

shouldBeSmaller

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

shouldBeSymbolicLink

fun File.shouldBeSymbolicLink(): Unit

shouldBeWriteable

fun File.shouldBeWriteable(): Unit

shouldContainFile

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

shouldContainNFiles

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

shouldExist

fun File.shouldExist(): Unit

shouldHaveExtension

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

shouldHaveFileSize

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

shouldHaveName

infix fun File.shouldHaveName(name: String): Unit

shouldHaveParent

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

shouldHavePath

infix fun File.shouldHavePath(name: String): Unit

shouldNotBeAbsolute

fun File.shouldNotBeAbsolute(): Unit

shouldNotBeADirectory

fun File.shouldNotBeADirectory(): Unit

shouldNotBeAFile

fun File.shouldNotBeAFile(): Unit

shouldNotBeCanonical

fun File.shouldNotBeCanonical(): Unit

shouldNotBeEmpty

fun File.shouldNotBeEmpty(): Unit

shouldNotBeExecutable

fun File.shouldNotBeExecutable(): Unit

shouldNotBeHidden

fun File.shouldNotBeHidden(): Unit

shouldNotBeLarger

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

shouldNotBeNonEmptyDirectory

fun File.shouldNotBeNonEmptyDirectory(): Unit

shouldNotBeReadable

fun File.shouldNotBeReadable(): Unit

shouldNotBeRelative

fun File.shouldNotBeRelative(): Unit

shouldNotBeSmaller

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

shouldNotBeSymbolicLink

fun File.shouldNotBeSymbolicLink(): Unit

shouldNotBeWriteable

fun File.shouldNotBeWriteable(): Unit

shouldNotContainFile

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

shouldNotContainNFiles

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

shouldNotExist

fun File.shouldNotExist(): Unit

shouldNotHaveExtension

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

shouldNotHaveFileSize

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

shouldNotHaveName

infix fun File.shouldNotHaveName(name: String): Unit

shouldNotHaveParent

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

shouldNotHavePath

infix fun File.shouldNotHavePath(name: String): Unit

shouldNotStartWithPath

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

shouldStartWithPath

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