Skip to content

test(sdk): Improve the test suite of RoomEvents #4172

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

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Oct 28, 2024

This patch should be reviewed commit-by-commit. The idea is to improve the test suite of RoomEvents.


@Hywan Hywan requested a review from a team as a code owner October 28, 2024 10:12
@Hywan Hywan requested review from poljar and removed request for a team October 28, 2024 10:12
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.79%. Comparing base (40f4fc1) to head (196dabf).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4172      +/-   ##
==========================================
+ Coverage   84.77%   84.79%   +0.02%     
==========================================
  Files         269      269              
  Lines       28963    28963              
==========================================
+ Hits        24552    24560       +8     
+ Misses       4411     4403       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Hywan added 3 commits October 28, 2024 13:15
This patch adds an `Event` type alias to `SyncTimelineEvent` to (i) make
the code shorter, (ii) remove some cognitive effort, (iii) make things
more convenient.
This patch adds unit tests for the `RoomEvents`' methods.
@Hywan Hywan force-pushed the test-sdk-event-cache-room-events branch from 0a2272e to 196dabf Compare October 28, 2024 12:15
@Hywan Hywan enabled auto-merge (rebase) October 28, 2024 12:16
@Hywan Hywan merged commit 77b3aa8 into matrix-org:main Oct 28, 2024
39 checks passed
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.

3 participants