Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vm): Support EVM emulation in fast VM #3163

Merged
merged 10 commits into from
Oct 31, 2024
48 changes: 48 additions & 0 deletions core/lib/multivm/src/versions/shadow/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,54 @@ mod default_aa {
}
}

mod evm_emulator {
use test_casing::{test_casing, Product};

use crate::versions::testonly::evm_emulator::*;

#[test]
fn tracing_evm_contract_deployment() {
test_tracing_evm_contract_deployment::<super::ShadowedFastVm>();
}

#[test]
fn mock_emulator_basics() {
test_mock_emulator_basics::<super::ShadowedFastVm>();
}

#[test_casing(2, [false, true])]
#[test]
fn mock_emulator_with_payment(deploy_emulator: bool) {
test_mock_emulator_with_payment::<super::ShadowedFastVm>(deploy_emulator);
}

#[test_casing(4, Product(([false, true], [false, true])))]
#[test]
fn mock_emulator_with_recursion(deploy_emulator: bool, is_external: bool) {
test_mock_emulator_with_recursion::<super::ShadowedFastVm>(deploy_emulator, is_external);
}

#[test]
fn calling_to_mock_emulator_from_native_contract() {
test_calling_to_mock_emulator_from_native_contract::<super::ShadowedFastVm>();
}

#[test]
fn mock_emulator_with_deployment() {
test_mock_emulator_with_deployment::<super::ShadowedFastVm>();
}

#[test]
fn mock_emulator_with_delegate_call() {
test_mock_emulator_with_delegate_call::<super::ShadowedFastVm>();
}

#[test]
fn mock_emulator_with_static_call() {
test_mock_emulator_with_static_call::<super::ShadowedFastVm>();
}
}

mod gas_limit {
use crate::versions::testonly::gas_limit::*;

Expand Down
Loading
Loading