Skip to content

Conversation

@mts1715
Copy link

@mts1715 mts1715 commented Nov 28, 2025

Closes #8127 #8241
test: achieve 100% test coverage for engine/common/rpc/convert package

Add comprehensive tests for all previously untested conversion and validation
functions.

Changes:

  • Add tests for MessagesToBlockSeals and PayloadFromMessage
  • Create validate_test.go with tests for all 7 validation functions
  • Add tests for 9 previously untested functions:
    • TransactionsToMessages
    • CcfPayloadToJsonPayload
    • CcfEventsToJsonEvents
    • CcfEventToJsonEvent
    • EventToMessageFromVersion
    • EventsToMessagesWithEncodingConversion
    • BlockTimestamp2ProtobufTime
    • BlockEventsToMessage
    • MessageToBlockEvents

Add comprehensive tests for all previously untested conversion and validation functions.
@mts1715 mts1715 self-assigned this Nov 28, 2025
@mts1715 mts1715 requested a review from a team as a code owner November 28, 2025 20:15
@peterargue peterargue changed the base branch from master to feature/optimistic-sync November 28, 2025 20:42
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
utils/unittest/fixtures.go 0.00% 2 Missing ⚠️
engine/access/testutil/fixture.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@UlyanaAndrukhiv UlyanaAndrukhiv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks good! I’ve left a few suggestions for improvements.

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.

[Access] Improve grpc converter tests.

4 participants