RecordingObserver class

Records everything a tracker reports, for asserting on afterwards.

Implemented types

Constructors

RecordingObserver()

Properties

baselines List<List<String>>
One entry per baseline capture: the detector ids that started.
final
failures List<String>
Detector ids that failed, in order.
final
hashCode int
The hash code for this object.
no setterinherited
published List<List<TrackedChange<Object>>>
One entry per published change list.
final
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
onBaselineCaptured(String trackerId, Iterable<String> detectorIds) → void
Called whenever a baseline is captured.
override
onChanges(String trackerId, List<TrackedChange<Object>> changes) → void
Called whenever the published change list actually changes.
override
onDetectorFailed(String trackerId, String detectorId, Object error, StackTrace stackTrace) → void
Called when a detector throws. The detector is marked degraded and the rest of the tracker keeps working.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited