FunctionExpectation<FnReturn> class
A class holding matchers for Function()
- Inheritance
-
- Object
- ExpectationBase<
FnReturn Function(), void, FnReturn> - FunctionExpectation
- Available Extensions
Properties
- actual → FnReturn Function()
-
The value that is tested
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
not
→ ExpectationBase<
FnReturn Function(), void, FnReturn> -
Reverse the expectation
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createMatcher(
Matcher match) → Matcher -
Apply transformations to a matcher.
inherited
-
isA<
T> () → void -
Returns a matcher that matches objects with type
T
.inherited -
isNull(
) → void -
A matcher that matches any null value.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runMatcher(
Matcher match) → void -
Expect that actual matches with a Matcher from the Dart SDK.
override
-
toBe(
FnReturn expected) → void -
Returns a matches that matches if the value is the same instance
as
expected
, using identical.inherited -
toEqual(
FnReturn expected, [int limit = 100]) → void -
Returns a matcher that matches if the value is structurally equal to
expected
.inherited -
toMatch(
Pattern re) → void -
Returns a matcher that matches if the match argument is a string and
matches the regular expression given by
re
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited