GraftTesting class abstract final

Comprehensive hermetic testing suite and mock isolation registry for Graft.

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

flushPersistence() → Future<void>
  • Frame-0 Dry Persistence Testing Synchronously flushes all pending debounced disk writes for immediate verification.
  • override<T extends Object>(T mockInstance) → void
  • Dependency & Controller Overrides Overrides an ambient dependency T for use<T>().
  • overrideController<G extends Graft<GraftState>>(G mockController) → void
    Overrides a controller G for context.use<G>() and context.create<G>().
    recordChanges(Graft<GraftState> graft, void action()) → List<GraftChange>
  • Telemetry & Change Spy Records and returns all GraftChange events triggered by action.
  • resetAll() → void
  • Hermetic Resets Wipes all DI scopes, root bindings, route ambient pools, persistence caches, and observers.
  • resetDI() → void
    Resets all DI scopes and root singletons.
    resetPersistence() → void
    Resets ambient persistence coordinator and L1 RAM caches.
    resetRoutes() → void
    Resets the ambient route registry and ownership pool.
    runWithOverrides<R>(Map<Type, Object?> overrides, R body()) → R
    Executes body inside a scoped Zone where overrides are active.