> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# LiteSVM

> 使用进程内虚拟机测试 Solana 程序。无需网络开销或 validator 进程,即可更快地测试您的程序。

LiteSVM 是一个用于测试 Solana 程序的轻量级库,其原理是创建一个专为程序开发者优化的进程内 Solana 虚拟机。与其他需要启动独立 validator 进程的测试方式不同,LiteSVM 将虚拟机直接嵌入到您的测试中,使测试的执行速度大幅提升。此外,它还一反传统,提供了符合人体工程学的 API 和合理的默认设置,同时为有需要的用户提供丰富的可配置选项。

## 快速入门

<Columns cols={2}>
  <Card title="快速入门" href="/developers/docs/tools/litesvm/getting-started">
    安装 LiteSVM 并编写您的第一个测试。
  </Card>
  <Card title="为什么选择 LiteSVM" href="/developers/docs/tools/litesvm/core-concepts">
    了解为什么应该使用 LiteSVM 进行测试。
  </Card>
</Columns>

## Rust

<Columns cols={2}>
  <Card title="测试您的程序" href="/developers/docs/tools/litesvm/testing-your-program">
    了解如何测试您自己的 Solana 程序。
  </Card>
  <Card title="示例" href="/developers/docs/tools/litesvm/examples">
    适用于常见场景的可直接复制粘贴的解决方案,以及完整的仓库示例。
  </Card>
  <Card title="API 参考" href="/developers/docs/tools/litesvm/api-reference">
    了解高级功能和自定义配置。
  </Card>
  <Card title="其他 Crate" href="/developers/docs/tools/litesvm/additional-crates/testing-with-litesvm-utils">
    用于工具函数、SPL 代币、加载器以及 Anchor 测试的辅助 crate。
  </Card>
</Columns>

## TypeScript

<Columns cols={2}>
  <Card title="快速入门" href="/developers/docs/tools/litesvm/typescript/getting-started">
    在您的 TypeScript 测试中通过 @solana/kit 使用 LiteSVM。
  </Card>
  <Card title="代币测试" href="/developers/docs/tools/litesvm/typescript/tokens">
    使用 tokenProgram() 插件测试 SPL 代币。
  </Card>
  <Card title="API 参考" href="/developers/docs/tools/litesvm/typescript/api-reference">
    了解高级功能和自定义配置。
  </Card>
  <Card title="示例" href="/developers/docs/tools/litesvm/typescript/examples">
    适用于常见场景的可直接复制粘贴的解决方案。
  </Card>
</Columns>

## Go

<Columns cols={2}>
  <Card title="快速入门" href="/developers/docs/tools/litesvm/go/getting-started">
    通过 litesvm-go 在 Go 中使用 LiteSVM。
  </Card>
  <Card title="API 参考" href="/developers/docs/tools/litesvm/go/api-reference">
    查阅 litesvm-go 的所有方法。
  </Card>
  <Card title="示例" href="/developers/docs/tools/litesvm/go/examples">
    运行适用于常见场景的完整 Go 测试。
  </Card>
</Columns>

## 资源

- [crates.io](https://crates.io/crates/litesvm) - LiteSVM Rust crate
- [npm](https://www.npmjs.com/package/@solana/kit-plugin-litesvm) - @solana/kit 的 LiteSVM 插件
- [GitHub](https://github.com/LiteSVM/litesvm) - 查看源代码
- [litesvm-go](https://github.com/LiteSVM/litesvm-go) - Go 语言绑定
