Skip to content
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

Rework FakeMatrixRoom so that it contains only lambdas. #3229

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Jul 19, 2024

This is actually adding more tests, to ensure that only expected methods are used by unit tests.

@bmarty bmarty requested a review from a team as a code owner July 19, 2024 19:45
@bmarty bmarty requested review from jmartinesp and removed request for a team July 19, 2024 19:45
@bmarty bmarty added the PR-Misc For other changes label Jul 19, 2024
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/nDVHan

Copy link

sonarcloud bot commented Jul 19, 2024

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 87.70492% with 15 lines in your changes missing coverage. Please review.

Project coverage is 76.14%. Comparing base (21553d7) to head (4984e2e).
Report is 6 commits behind head on develop.

Files Patch % Lines
...droid/libraries/matrix/test/room/FakeMatrixRoom.kt 87.70% 14 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3229   +/-   ##
========================================
  Coverage    76.13%   76.14%           
========================================
  Files         1645     1645           
  Lines        38816    38728   -88     
  Branches      7520     7516    -4     
========================================
- Hits         29554    29489   -65     
+ Misses        5361     5336   -25     
- Partials      3901     3903    +2     

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

var sendCallNotificationIfNeededResult: () -> Result<Unit> = { Result.success(Unit) },
canRedactOwn: Boolean = false,
canRedactOther: Boolean = false,
private var roomPermalinkResult: () -> Result<String> = { lambdaError() },
Copy link
Member

Choose a reason for hiding this comment

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

I tend to make these public so we don't have to add extra given___ methods to modify them, but it's no big deal.

@jmartinesp jmartinesp merged commit 5bda29c into develop Jul 22, 2024
30 checks passed
@jmartinesp jmartinesp deleted the feature/bma/someCleanUp branch July 22, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Misc For other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants