Skip to content

feat: add statement coverage instrumentation #879

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

Open
wants to merge 4 commits into
base: feat/code-coverage
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lemon-pumas-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/edr": minor
---

Added instrumenting of source code for statement code coverage measurement
99 changes: 79 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"crates/edr_defaults",
"crates/edr_eth",
"crates/edr_evm",
"crates/edr_instrument",
"crates/edr_napi",
"crates/edr_provider",
"crates/edr_rpc_client",
Expand Down Expand Up @@ -31,6 +32,12 @@ alloy-eips = { version = "0.13.0", default-features = false }
alloy-serde = { version = "0.13.0", default-features = false }
anyhow = { version = "1.0.89", default-features = false }
paste = { version = "1.0.14", default-features = false }
serde = { version = "1.0.209", default-features = false }
serde_json = { version = "1.0.127", default-features = false }
sha2 = { version = "0.10.8", default-features = false }
sha3 = { version = "0.10.8", default-features = false }
semver = { version = "1.0.23", default-features = false }
thiserror = { version = "1.0.58", default-features = false }

[workspace.lints.rust]
future_incompatible = "warn"
Expand Down
10 changes: 5 additions & 5 deletions crates/edr_eth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ revm-context = { version = "2.0.0", default-features = false }
revm-context-interface = { version = "2.0.0", default-features = false }
revm-primitives = { version = "17.0.0", default-features = false, features = ["hashbrown", "rand"] }
revm-state = { version = "2.0.0", default-features = false }
serde = { version = "1.0.209", default-features = false, features = ["derive"], optional = true }
sha2 = { version = "0.10.8", default-features = false }
sha3 = { version = "0.10.8", default-features = false }
thiserror = { version = "1.0.37", default-features = false }
serde = { workspace = true, features = ["derive"], optional = true }
sha2.workspace = true
sha3.workspace = true
thiserror.workspace = true
tracing = { version = "0.1.37", features = ["attributes", "std"], optional = true }
triehash = { version = "0.8.4", default-features = false }

Expand All @@ -39,7 +39,7 @@ edr_rpc_eth = { version = "0.3.5", path = "../edr_rpc_eth" }
edr_test_utils = { version = "0.3.5", path = "../edr_test_utils" }
lazy_static = "1.4.0"
paste.workspace = true
serde_json = { version = "1.0.127" }
serde_json.workspace = true
serial_test = "2.0.0"
tempfile = { version = "3.7.1", default-features = false }
tokio = { version = "1.23.0", features = ["macros"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/edr_evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ revm-database-interface = { version = "2.0.0", default-features = false }
revm-handler = { version = "2.0.0", default-features = false }
revm-interpreter = { version = "17.0.0", default-features = false }
rpds = { version = "1.1.0", default-features = false, features = ["std"] }
serde = { version = "1.0.209", default-features = false, features = ["std"] }
serde = { workspace = true, features = ["std"] }
serde_json = { version = "1.0.127", default-features = false, features = ["std"] }
thiserror = { version = "1.0.38", default-features = false }
thiserror.workspace = true
tokio = { version = "1.21.2", default-features = false, features = ["macros", "rt-multi-thread", "sync"] }
tracing = { version = "0.1.37", features = ["attributes", "std"], optional = true }

Expand Down
6 changes: 3 additions & 3 deletions crates/edr_generic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ edr_provider = { path = "../edr_provider" }
edr_rpc_eth = { path = "../edr_rpc_eth" }
edr_solidity = { path = "../edr_solidity" }
log = { version = "0.4.17", default-features = false }
serde = { version = "1.0.209", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.37", default-features = false }
serde = { workspace = true, features = ["derive"] }
thiserror.workspace = true

[dev-dependencies]
anyhow = "1.0.89"
Expand All @@ -27,7 +27,7 @@ edr_rpc_client = { path = "../edr_rpc_client" }
edr_test_utils = { path = "../edr_test_utils" }
parking_lot = { version = "0.12.1", default-features = false }
paste = { version = "1.0.14", default-features = false }
serde_json = { version = "1.0.127" }
serde_json.workspace = true
serial_test = "2.0.0"
tokio = { version = "1.21.2", default-features = false, features = ["macros", "rt-multi-thread", "sync"] }

Expand Down
17 changes: 17 additions & 0 deletions crates/edr_instrument/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "edr_instrument"
version.workspace = true
edition.workspace = true

[dependencies]
anyhow.workspace = true
edr_eth = { path = "../edr_eth" }
semver.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
sha3.workspace = true
slang_solidity = "0.18.3"
thiserror.workspace = true

[lints]
workspace = true
Loading
Loading