MockFluidDataStoreRuntime Class
Mock implementation of IRuntime for testing that does nothing
To use, import via @fluidframework/test-runtime-utils/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare class MockFluidDataStoreRuntime extends EventEmitter implements IFluidDataStoreRuntime, IFluidDataStoreChannel, IFluidHandleContext
Extends: EventEmitter
Implements: IFluidDataStoreRuntime, IFluidDataStoreChannel, IFluidHandleContext
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(overrides) | Alpha |
Constructs a new instance of the MockFluidDataStoreRuntime class |
Properties
Constructor Details
(constructor)
Constructs a new instance of the MockFluidDataStoreRuntime
class
For more information about our API support guarantees, see here.
Signature
constructor(overrides?: {
clientId?: string;
entryPoint?: IFluidHandle<FluidObject>;
id?: string;
logger?: ITelemetryBaseLogger;
idCompressor?: IIdCompressor & IIdCompressorCore;
attachState?: AttachState;
registry?: readonly IChannelFactory[];
});
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
overrides | optional | { clientId?: string; entryPoint?: IFluidHandle<FluidObject>; id?: string; logger?: ITelemetryBaseLogger; idCompressor?: IIdCompressor & IIdCompressorCore; attachState?: AttachState; registry?: readonly IChannelFactory[]; } |
Property Details
absolutePath
For more information about our API support guarantees, see here.
Signature
get absolutePath(): string;
Type: string
attachState
For more information about our API support guarantees, see here.
Signature
get attachState(): AttachState;
Type: AttachState
channelsRoutingContext
For more information about our API support guarantees, see here.
Signature
get channelsRoutingContext(): IFluidHandleContext;
Type: IFluidHandleContext
clientId
For more information about our API support guarantees, see here.
Signature
clientId: string;
Type: string
connected
For more information about our API support guarantees, see here.
Signature
readonly connected = true;
containerRuntime
For more information about our API support guarantees, see here.
Signature
containerRuntime?: MockContainerRuntime;
Type: MockContainerRuntime
deltaManager
For more information about our API support guarantees, see here.
Signature
get deltaManager(): IDeltaManagerErased;
Type: IDeltaManagerErased
deltaManagerInternal
For more information about our API support guarantees, see here.
Signature
deltaManagerInternal: MockDeltaManager;
Type: MockDeltaManager
disposed
For more information about our API support guarantees, see here.
Signature
get disposed(): boolean;
Type: boolean
documentId
For more information about our API support guarantees, see here.
Signature
readonly documentId: string;
Type: string
entryPoint
For more information about our API support guarantees, see here.
Signature
readonly entryPoint: IFluidHandleInternal<FluidObject>;
Type: IFluidHandleInternal<FluidObject>
existing
For more information about our API support guarantees, see here.
Signature
readonly existing: boolean;
Type: boolean
id
For more information about our API support guarantees, see here.
Signature
readonly id: string;
Type: string
idCompressor
For more information about our API support guarantees, see here.
Signature
idCompressor: (IIdCompressor & IIdCompressorCore) | undefined;
Type: (IIdCompressor & IIdCompressorCore) | undefined
IFluidHandleContext
For more information about our API support guarantees, see here.
Signature
get IFluidHandleContext(): IFluidHandleContext;
Type: IFluidHandleContext
isAttached
For more information about our API support guarantees, see here.
Signature
get isAttached(): boolean;
Type: boolean
loader
For more information about our API support guarantees, see here.
Signature
readonly loader: ILoader;
Type: ILoader
local
Use attachState
instead
For more information about our API support guarantees, see here.
Signature
get local(): boolean;
set local(local: boolean);
Type: boolean
logger
For more information about our API support guarantees, see here.
Signature
readonly logger: ITelemetryBaseLogger;
Type: ITelemetryBaseLogger
objectsRoutingContext
For more information about our API support guarantees, see here.
Signature
get objectsRoutingContext(): IFluidHandleContext;
Type: IFluidHandleContext
options
For more information about our API support guarantees, see here.
Signature
options: Record<string | number, any>;
Type: Record<string | number, any>
path
For more information about our API support guarantees, see here.
Signature
readonly path = "";
quorum
For more information about our API support guarantees, see here.
Signature
quorum: MockQuorumClients;
Type: MockQuorumClients
rootRoutingContext
For more information about our API support guarantees, see here.
Signature
get rootRoutingContext(): IFluidHandleContext;
Type: IFluidHandleContext
visibilityState
For more information about our API support guarantees, see here.
Signature
get visibilityState(): VisibilityState;
Type: VisibilityState