file_testing library

Matchers (from package:test) for use in tests that deal with file systems.

Constants

exists → const Matcher
Matcher that successfully matches against a FileSystemEntity that exists (FileSystemEntity.existsSync returns true).
isDirectory → const Matcher
Matcher that successfully matches against any instance of Directory.
isFile → const Matcher
Matcher that successfully matches against any instance of File.
isFileStat → const Matcher
Matcher that successfully matches against any instance of FileStat.
isFileSystemEntity → const Matcher
Matcher that successfully matches against any instance of FileSystemEntity.
Matcher that successfully matches against any instance of Link.

Functions

expectFileSystemException(dynamic osErrorCode, void callback()) → void
Expects the specified callback to throw a FileSystemException with the specified osErrorCode (matched against the exception's osError.errorCode).
hasPath(dynamic path) → Matcher
Returns a Matcher that matches path against an entity's path.
isFileSystemException([dynamic osErrorCode]) → Matcher
Returns a Matcher that successfully matches against an instance of FileSystemException.
throwsFileSystemException([dynamic osErrorCode]) → Matcher
Returns a matcher that successfully matches against a future or function that throws a FileSystemException.