Create the directory directory if it is missing.
Modulehedgehog-extras-0.10.1.0Haskell2010
Hedgehog.Extras.Test.File
Synopsis
- value createDirectoryIfMissing
- value createDirectoryIfMissing_
- value createSubdirectoryIfMissing
- value createSubdirectoryIfMissing_
- value copyFile
- value renameFile
- value createFileLink
- value listDirectory
- value appendFile
- value writeFile
- value openFile
- value readFile
- value lbsWriteFile
- value lbsReadFile
- value textWriteFile
- value textReadFile
- value copyRewriteJsonFile
- value readJsonFile
- value readJsonFileOk
- value rewriteJsonFile
- value rewriteLbsJson
- value copyRewriteYamlFile
- value readYamlFile
- value readYamlFileOk
- value rewriteYamlFile
- value rewriteLbsYaml
- value cat
- value assertIsJsonFile
- value assertIsYamlFile
- value assertFileExists
- value assertFilesExist
- value assertFileMissing
- value assertFilesMissing
- value assertFileOccurences
- value assertFileLines
- value assertEndsWithSingleNewline
- value appendFileTimeDelta
- value assertDirectoryMissing
- value assertDirectoryExists
- Packagehedgehog-extras-0.10.1.0
- Exports39
- LanguageHaskell2010
- LicenceApache-2.0
- SourceFile.hs
Create the directory directory if it is missing.
Create the subdirectory subdirectory if it is missing. The subdirectory is returned.
Create the subdirectory subdirectory if it is missing. The subdirectory is returned.
Copy the contents of the src file to the dst file.
Rename the src file to dst.
Create a symbolic link from dst to src.
List p directory.
Append contents to the filePath file.
Write contents to the filePath file.
Open a handle to the filePath file.
Read the contents of the filePath file.
Write contents to the filePath file.
Read the contents of the filePath file.
Write contents to the filePath file.
Read the contents of the filePath file.
Rewrite the filePath JSON file using the function f.
Read the filePath file as JSON. Same as readJsonFile but fails on error. Use
readJsonFileOk @Value to decode into Value.
Rewrite the filePath JSON file using the function f.
Rewrite the filePath YAML file using the function f.
Read the filePath file as YAML.
Read the filePath file as YAML. Same as readYamlFile but fails on error.
Rewrite the filePath YAML file using the function f.
Annotate the contents of the filePath file.
Assert the filePath can be parsed as JSON.
Assert the filePath can be parsed as YAML.
Asserts that the given file exists.
Asserts that all of the given files exist.
Asserts that the given file is missing.
Asserts that all of the given files are missing.
Assert the file contains the given number of occurrences of the given string
Assert the file contains the given number of occurrences of the given string
Assert the file contains the given number of occurrences of the given string
Write contents to the filePath file.
Asserts that the given directory is missing.
Asserts that the given directory exists.