VerdictEffect class
The decision reached by an effectful TestCell.
Recorded once per rule call. On replay, the rule is not called
again; the recorded decision is served. This is what makes an
effectful test rule replayable without re-executing its external
checks.
The inputDigest is a fingerprint of the object being tested (for
a pulse, its canonical JSON; for a value, its canonical JSON). It
lets ReplayJournal assert that the rule is being asked about the
same input it was asked about during recording.
- Inheritance
-
- Object
- EffectRecord
- VerdictEffect
Constructors
Properties
- at → DateTime
-
Wall-clock time of the observation. Recorded because replay needs to
reconstruct ordering; not part of the semantics of the effect.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputDigest → String
-
SHA-256 fingerprint of the effect's input (e.g. for
Clock.now, the fingerprint of"clock"; for IoEffect, the fingerprint of the request).finalinherited - kind → String
-
The type tag stored in the ledger. Stable across schema versions.
no setteroverride
- ordinal → int
-
Monotonic ordinal within the journal, assigned by EffectJournal.
Used to assert exact consumption during replay.
finalinherited
- outputDigest → String
-
SHA-256 fingerprint of the effect's output (e.g. the epoch millis
for a clock read; the response body for an I/O call).
finalinherited
- ruleLabel → String
-
A stable label for the rule, e.g.
'AdminRule@1.0.0'.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verdict → bool
-
The rule's decision.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payloadJson(
) → Map< String, Object?> -
The variant-specific payload. Called by toJson.
override
-
toJson(
) → Map< String, Object?> -
Serialises this record to its canonical JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → VerdictEffect -
Reconstructs an EffectRecord from toJson's output.
override