-
Notifications
You must be signed in to change notification settings - Fork 155
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
Cleanup tests #3645
Cleanup tests #3645
Conversation
Cleanup and fix test
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Quality Gate passedIssues Measures |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3645 +/- ##
===========================================
+ Coverage 82.82% 82.83% +0.01%
===========================================
Files 1747 1747
Lines 41742 41753 +11
Branches 5102 5105 +3
===========================================
+ Hits 34572 34586 +14
Misses 5355 5355
+ Partials 1815 1812 -3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will change number of recomposition for tests, but in real life it won't change anything as it's not using the same composition clock between app and tests
*/ | ||
@Stable | ||
sealed interface AsyncAction<out T> { | ||
sealed interface AsyncAction<out C, out T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of adding new type everywhere, we could let the Confirming be an interface you can inherits only you have data to confirm?
interface Confirming : AsyncAction<Nothing>
data object SimpleConfirmation : Confirming
val unbanUserAsyncAction: AsyncAction<Unit>
data class UnbanUserActionConfirmation(val member: RoomMember): Confirming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled in #3667.
...s/images/features.roomdetails.impl.members.moderation_RoomMembersModerationView_Day_5_en.png
Show resolved
Hide resolved
I will split this random PR into smaller ones. |
Content
Cleanup test.
Make AsyncAction.Confirming having a field to be able to reduce the number of recomposition. This is impacting lots of file, but I did not find an easy way to let
C
beUnit
by default.Rework Moderation presenter to make it a bit more live.
Motivation and context
Cleaner code.
Screenshots / GIFs
Tests
Tested devices
Checklist