doc / ch.tutteli.atrium.logic.creating.filesystem.hints

Package ch.tutteli.atrium.logic.creating.filesystem.hints

Contains helper functions which help in defining failure hints in case your expectation function deals with the file system.

Functions

explainForResolvedLink

fun explainForResolvedLink(path: Path, resolvedPathAssertionProvider: (realPath: Path) -> Assertion): Assertion

Internal for testing purposes only

findHintForProblemWithParent

fun findHintForProblemWithParent(path: Path): Assertion?

Searches for any problem with a parent directory that is not that the directory does not exist.

hintForAccessDenied

fun hintForAccessDenied(path: Path): Assertion

hintForClosestExistingParent

fun hintForClosestExistingParent(path: Path): Assertion

Assumes that we know that path does not exist.

hintForExistsButMissingPermission

fun <T : Path> hintForExistsButMissingPermission(subject: T, permissionName: Translatable): Assertion

hintForIoException

fun hintForIoException(path: Path, exception: IOException): Assertion

hintForOwnersAndPermissions

fun hintForOwnersAndPermissions(path: Path): MutableList<Assertion>

withFileAttributesFailureHint

fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withFileAttributesFailureHint(expect: Expect<IoResult<BasicFileAttributes>>): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep>

withIOExceptionFailureHint

fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withIOExceptionFailureHint(expect: Expect<IoResult<T>>, f: (Path, IOException) -> Assertion?): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep>