Skip to content

Commit 14ebc36

Browse files
kariyclaude
andcommitted
add integration tests for ControllerDeployment middleware
Cover all code paths in the middleware's starknet_estimateFee and cartridge_addExecuteFromOutside interception logic using a mock Cartridge API (axum), mock inner RPC service, and the real StarknetApi with an in-memory test provider. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6df8734 commit 14ebc36

File tree

3 files changed

+834
-0
lines changed

3 files changed

+834
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rpc/rpc-server/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ alloy-provider = { workspace = true, default-features = false, features = [ "anv
6565
alloy-sol-types.workspace = true
6666

6767
assert_matches.workspace = true
68+
axum.workspace = true
6869
cainome.workspace = true
6970
cairo-lang-starknet-classes.workspace = true
7071
indexmap.workspace = true

0 commit comments

Comments
 (0)