testsvm-core

Crates.iotestsvm-core
lib.rstestsvm-core
version0.2.0
created_at2025-09-01 08:11:45.023959+00
updated_at2025-10-15 03:01:26.56448+00
descriptionCore TestSVM implementation for Solana program testing
homepagehttps://github.com/macalinao/testsvm
repositoryhttps://github.com/macalinao/testsvm
max_upload_size
id1819282
size171,994
Ian Macalinao (macalinao)

documentation

https://docs.rs/testsvm-core

README

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.

Commit count: 48

cargo fmt