RecordingBdRunner class
A recording BdRunner (the grid_runtime fake shape): records full argv +
stdin so a test asserts the EXACT bd commands, and create returns a
caller-controlled synthetic id so the mint+stamp is exercised with no real
bd.
Constructors
- RecordingBdRunner({String createdId = 'tgdog-sess1'})
-
Creates the recorder;
createreturnscreatedId.
Properties
-
calls
→ List<
List< String> > -
Full argv of every recorded
bdcall, in order.final -
exportBeads
↔ List<
Bead> -
The beads an
export --allscan returns as JSONL (DESIGN-tg-pm6.mdR6) — the storeStationBeadWriter.createMolecule's mint-dedup probe andreapMolecule's collection scan both read viaexportAll. Default empty (a fresh store); a molecule test stages the OPEN molecule/step beads it expects those scans to see.getter/setter pair -
exportDependencies
↔ List<
BeadDependency> -
getter/setter pair
-
graphApplyCalls
→ List<
List< String> > -
The
bd create --graph <plan-file> …pours only (StationBeadWriter.createMolecule's mint) — disjoint fromcallsFor('create')'s plain single-bead creates, which never carry--graph.no setter -
graphApplyIds
↔ Map<
String, String> -
The
key → idmap the nextbd create --graphinvocation reports (applyGraph'sdata.ids) —StationBeadWriter.createMolecule's pour reads this back throughBdCliService.applyGraph. A molecule-mode test stages the ids it expectsinstantiateMolecule's plan-local keys to receive.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- neverShowOrSql → bool
-
True if no call was
bd show(forbidden on a controller path) and no call looks like raw SQL (defense — the chokepoint cannot issue SQL by construction).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stdins
→ List<
String?> -
The
--stdinpayload of every recorded call (null when none), in order.final
Methods
-
callsFor(
String sub) → List< List< String> > -
All calls whose leading subcommand is
sub. For'create', this INCLUDES graph-apply pours (create --graph …) — use graphApplyCalls to isolate those from a plain single-beadcreate. -
metadataOfUpdate(
int index) → Map< String, dynamic> -
The decoded
--metadataJSON object of theupdatecall atindex. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
List< String> args, {Duration? timeout, String? stdin}) → Future<BdResult> -
Runs
bd <args>. ThrowsBdTimeoutExceptionif the call exceedstimeout(the implementation kills the process tree); never throws for a non-zero exit — that is reported viaBdResult.exitCodefor the caller to route throughBdCommandFailed.fromOutput. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited