ShouldThrow class
Specifies that an InvalidGenerationSourceError
is expected to be thrown
when running generation for the annotated member.
Must be used with testAnnotatedElements.
Constructors
Properties
-
configurations
→ Iterable<
String> ? -
finalinherited
- element → dynamic
-
If
null
, expectsInvalidGenerationSourceError.element
to match the element annotated with ShouldThrow.final - errorMessage → String
-
final
-
expectedLogItems
→ List<
String> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- todo → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replaceConfiguration(
Iterable< String> newConfiguration) → TestExpectation -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited