DVTestHarness class

Available extensions

Constructors

DVTestHarness()
const

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

asUser<T>(DVAuthUser user, FutureOr<T> callback()) → Future<T>

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

clearMailProvider() → void
clearNotificationProviders() → void
fake3D({DV3DDegradation initialization = DV3DDegradation.none}) → DVSceneFake
Substitutes a headless 3D backend: every scene created afterwards gets its own DVSceneRecordingRenderer, so scene logic -- signals, picking, asset loading, resource lifetime -- tests without a GPU. DVScene3D.reset() takes it away.
fakeAI() → LocalDVAIAdapter

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

fakeAuthUser({String id = 'test-user', String? email = 'test@example.com', String provider = 'fake', Map<String, Object?> metadata = const <String, Object?>{}, DateTime? createdAt}) → DVAuthUser

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

fakeDatabase() → MemoryDVDatabaseAdapter

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

fakeHttp(Map<String, DVHttpStub> stubs) → DVHttpFake
Answers outbound DV.Http requests from stubs, by declared host name or by the host of an absolute URL, and refuses any request no stub answers (DV-HTTP-004) -- a suite whose result depends on somebody else's uptime is not a suite. DVHttp.reset() puts the real wire back.
fakeMail() → DVMemoryMailProvider
fakeNativeBinding(String method, FutureOr<Object?> handler(Object?)) → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

fakeNotifications() → DVMemoryNotificationProvider
fakeQueue() → DVInMemoryQueueAdapter
fakeStorage() → DVMemoryFileStorageAdapter

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

fakeWindowing(DVWindowingCapability capability) → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

Installs capability as the windowing capability for this test.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshDatabase() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetAI() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetAIProvider() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetAITools() → void
resetAuth() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetAuthProvider() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetBillingProvider() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetCacheTags() → void
resetDatabaseProvider() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetMail() → void
resetNativeBindings() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

resetNotifications() → void
resetPolicies() → void
resetQueues() → void
resetSignals() → void
resetStorage() → void

Available on DVTestHarness, provided by the DVFlutterTestHarness extension

toString() → String
A string representation of this object.
inherited
unconfigureQueues() → void
Returns queues to a process that configured nothing: the process-local default adapter, no handlers, and DVQueues.adapterConfigured false. resetQueues installs a fake, which counts as configured.
withSecrets<T>(Map<String, String> secrets, FutureOr<T> body()) → Future<T>
Supplies secrets for the duration of body, then puts everything back -- values that were there before, values that were not, and any rotation hook the body registered.

Operators

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