testsvm-core 0.2.0

Core TestSVM implementation for Solana program testing
Documentation

TestSVM Core

Crates.io Documentation

Core implementation of the TestSVM testing framework for Solana programs. This crate provides the fundamental building blocks for testing Solana programs in a simulated environment, wrapping LiteSVM with enhanced functionality for transaction management, account creation, and debugging capabilities.

Features

  • LiteSVM Wrapper: Enhanced wrapper around LiteSVM with additional testing utilities
  • Transaction Management: Simplified transaction sending with automatic fee payer management
  • Account Creation: Helper functions for creating and funding test accounts
  • Address Book Integration: Built-in address book for tracking and labeling accounts
  • Clock Control: Utilities for manipulating blockchain time in tests
  • Enhanced Debugging: Colored output and detailed transaction result formatting

Core Components

  • TestSVM: Main struct wrapping LiteSVM with payer and address book management
  • AccountRef: Reference wrapper for account data with convenient accessors
  • TXResult: Enhanced transaction result type with detailed error information
  • Address Book: Integrated address labeling system for better debugging

License

Copyright (c) 2025 Ian Macalinao. Licensed under the Apache License, Version 2.0.