Skip to content

test(evm-node): add unit tests for rpc_get_version#62

Open
lau90eth wants to merge 1 commit into
circlefin:mainfrom
lau90eth:lau90eth/test-rpc-get-version-v2
Open

test(evm-node): add unit tests for rpc_get_version#62
lau90eth wants to merge 1 commit into
circlefin:mainfrom
lau90eth:lau90eth/test-rpc-get-version-v2

Conversation

@lau90eth
Copy link
Copy Markdown

Summary

Add unit tests for rpc_get_version() in evm-node/src/rpc/get_version.rs.

The function had 0% test coverage. These tests verify:

  • rpc_get_version() returns Ok
  • All fields (git_version, git_commit, git_short_hash, cargo_version) are non-empty
  • git_short_hash is a prefix of git_commit
  • cargo_version contains the short hash

Testing

cargo test -p arc-evm-node

52 tests pass.

@lau90eth lau90eth force-pushed the lau90eth/test-rpc-get-version-v2 branch 2 times, most recently from 81976b4 to d5e169b Compare May 12, 2026 11:17
@lau90eth lau90eth force-pushed the lau90eth/test-rpc-get-version-v2 branch from d5e169b to 33e37b5 Compare May 12, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant