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

Classes

MethodInvocation
Matchers that matches against MethodEvent instances. [...]
PropertyGet
Matchers that matches against PropertyGetEvent instances. [...]
PropertySet
Matchers that matches against PropertySetEvent instances. [...]
RecordedInvocation<T extends RecordedInvocation<T>>
Base class for matchers that match against generic InvocationEvent instances.

Constants

exists Matcher
Matcher that successfully matches against a FileSystemEntity that exists (FileSystemEntity.existsSync returns true).
const _Exists()
isDirectory Matcher
Matcher that successfully matches against any instance of Directory.
const isInstanceOf<Directory>()
isFile Matcher
Matcher that successfully matches against any instance of File.
const isInstanceOf<File>()
isFileStat Matcher
Matcher that successfully matches against any instance of FileStat.
const isInstanceOf<FileStat>()
isFileSystemEntity Matcher
Matcher that successfully matches against any instance of FileSystemEntity.
const isInstanceOf<FileSystemEntity>()
Matcher that successfully matches against any instance of Link.
const isInstanceOf<Link>()
isNoMatchingInvocationError Matcher
A matcher that successfully matches against an instance of NoMatchingInvocationError.
const _NoMatchingInvocationError()

Properties

throwsNoMatchingInvocationError Matcher
A matcher that successfully matches against a future or function that throws a NoMatchingInvocationError.
read / write

Functions

expectFileSystemException(osErrorCode, void callback()) → void
Expects the specified callback to throw a FileSystemException with the specified osErrorCode (matched against the exception's osError.errorCode). [...]
getsProperty([name ]) PropertyGet
Returns a matcher that will match against a PropertyGetEvent. [...]
hasPath(path) Matcher
Returns a Matcher that matches path against an entity's path. [...]
invokesMethod([name ]) MethodInvocation
Returns a matcher that will match against a MethodEvent. [...]
isFileSystemException([osErrorCode ]) Matcher
Returns a Matcher that successfully matches against an instance of FileSystemException. [...]
setsProperty([name ]) PropertySet
Returns a matcher that will match against a PropertySetEvent. [...]
throwsFileSystemException([osErrorCode ]) Matcher
Returns a matcher that successfully matches against a future or function that throws a FileSystemException. [...]