Module mock

Module mock 

Source
Expand description

Provides mock access models and in-memory workspaces for tests. Mock VFS support for Tinymist tests.

This module intentionally lives in tinymist-vfs so VFS tests can use it without depending on higher-level crates. Enable the mock feature from downstream test-support crates when this module is needed as a dependency.

Structs§

MockChange
A workspace mutation and its runtime-facing changeset.
MockPathAccess
Path access over a shared in-memory workspace.
MockRootResolver
A root resolver for mock VFS tests.
MockWorkspace
A deterministic in-memory workspace for VFS and runtime tests.
MockWorkspaceBuilder
Builder for MockWorkspace.

Functions§

default_mock_root
Returns the default root used by mock workspaces.