FrameGuardGolden class

Golden performance baseline helpers for tests.

Never silently overwrites baselines — updates require deliberate CLI/action.

Constructors

FrameGuardGolden()

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 report to match the golden baseline named name.
update(FrameGuardReport report, String name, {String directory = defaultDirectory, bool overwrite = false}) Future<File>
Writes a baseline for report only when overwrite is true.

Constants

defaultDirectory → const String
Default directory for golden baselines relative to the package root.