neo-test 0.14.0

Testing framework for Neo N3 Rust smart contracts
Documentation

Neo N3 Contract Testing Framework

This crate provides utilities for testing Neo N3 smart contracts with a mock runtime environment.

Usage

use neo_test::*;

// Create a test environment
let mut env = TestEnvironment::new();

// Set up contract state
env.set_storage(b"owner", b"AV4GGdKS2C7j1GqC3w5y4qX5");

// Add witness
env.add_witness(b"AV4GGdKS2C7j1GqC3w5y4qX5");

// Assert
env.assert_storage().assert_contains(b"owner");
env.assert_runtime().assert_witness(b"AV4GGdKS2C7j1GqC3w5y4qX5");