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
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
absolutePath | Alpha |
readonly |
string | |
attachState | Alpha |
readonly |
AttachState | |
channelsRoutingContext | Alpha |
readonly |
IFluidHandleContext | |
clientId | Alpha |
string | ||
connected | Alpha |
readonly |
||
containerRuntime | Alpha |
optional |
MockContainerRuntime | |
deltaManager | Alpha |
readonly |
IDeltaManagerErased | |
deltaManagerInternal | Alpha |
MockDeltaManager | ||
disposed | Alpha |
readonly |
boolean | |
documentId | Alpha |
readonly |
string | |
entryPoint | Alpha |
readonly |
IFluidHandleInternal<FluidObject> | |
existing | Alpha |
readonly |
boolean | |
id | Alpha |
readonly |
string | |
idCompressor | Alpha |
(IIdCompressor & IIdCompressorCore) | undefined | ||
IFluidHandleContext | Alpha |
readonly |
IFluidHandleContext | |
ILayerCompatDetails | Alpha |
optional |
unknown | |
isAttached | Alpha |
readonly |
boolean | |
isReadOnly | Alpha |
readonly |
() => boolean | |
loader | Alpha |
readonly |
ILoader | |
local | Deprecated , Alpha |
boolean | ||
logger | Alpha |
readonly |
ITelemetryBaseLogger | |
objectsRoutingContext | Alpha |
readonly |
IFluidHandleContext | |
options | Alpha |
Record<string | number, any> | ||
path | Alpha |
readonly |
||
quorum | Alpha |
MockQuorumClients | ||
rootRoutingContext | Alpha |
readonly |
IFluidHandleContext | |
visibilityState | Alpha |
readonly |
VisibilityState |
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
ILayerCompatDetails
For more information about our API support guarantees, see here.
Signature
ILayerCompatDetails?: unknown;
Type: unknown
Remarks
This is for internal use only.
isAttached
For more information about our API support guarantees, see here.
Signature
get isAttached(): boolean;
Type: boolean
isReadOnly
For more information about our API support guarantees, see here.
Signature
readonly isReadOnly: () => 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