Contains helper functions which help in defining failure hints in case your expectation function deals with the file system.
fun explainForResolvedLink(path: Path, resolvedPathAssertionProvider: (realPath: Path) -> Assertion): Assertion
Internal for testing purposes only |
|
fun findHintForProblemWithParent(path: Path): Assertion?
Searches for any problem with a parent directory that is not that the directory does not exist. |
|
fun hintForAccessDenied(path: Path): Assertion |
|
fun hintForClosestExistingParent(path: Path): Assertion
Assumes that we know that path does not exist. |
|
fun <T : Path> hintForExistsButMissingPermission(subject: T, permissionName: Translatable): Assertion |
|
fun hintForIoException(path: Path, exception: IOException): Assertion |
|
fun hintForOwnersAndPermissions(path: Path): MutableList<Assertion> |
|
fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withFileAttributesFailureHint(expect: Expect<IoResult<BasicFileAttributes>>): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> |
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withIOExceptionFailureHint(expect: Expect<IoResult<T>>, f: (Path, IOException) -> Assertion?): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> |