FrameGuardGolden class
Golden performance baseline helpers for tests.
Never silently overwrites baselines — updates require deliberate CLI/action.
Constructors
Properties
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
expectMatches(
FrameGuardReport report, String name, {String directory = defaultDirectory, ComparisonThresholds thresholds = const ComparisonThresholds(), bool requireMatchingEnvironment = false}) → Future< void> -
Expects
reportto match the golden baseline namedname. -
update(
FrameGuardReport report, String name, {String directory = defaultDirectory, bool overwrite = false}) → Future< File> -
Writes a baseline for
reportonly whenoverwriteis true.
Constants
- defaultDirectory → const String
- Default directory for golden baselines relative to the package root.