ShouldGenerate class

Specifies the expected output for code generation on the annotated member.

Must be used with testAnnotatedElements.

Constructors

ShouldGenerate(String expectedOutput, {bool contains = false, Iterable<String>? configurations, List<String>? expectedLogItems})
const

Properties

configurations Iterable<String>?
finalinherited
contains bool
final
expectedLogItems List<String>
finalinherited
expectedOutput String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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