Gradle Test Run :app:testDevDebugUnitTest

MuteInfoFromMapTest

summary

21

tests

0

failures

0

skipped

0.020s

duration

100%

successful

Child Tests Failures Skipped Duration Success rate
a permanent mute is in force at any time 1 0 0 0s 100%
a timed mute is in force one millisecond before it ends 1 0 0 0s 100%
a timed mute is not in force at the moment it ends 1 0 0 0s 100%
an inactive mute is not in force 1 0 0 0s 100%
default values 1 0 0 0s 100%
fromMap handles empty map with defaults 1 0 0 0s 100%
fromMap handles inactive mute 1 0 0 0s 100%
fromMap handles null values 1 0 0 0s 100%
fromMap handles permanent mute with null expiresAt 1 0 0 0s 100%
fromMap of toMap round-trip preserves data except mutedUserId 1 0 0 0s 100%
fromMap of toMap round-trip with null reason and expiresAt 1 0 0 0s 100%
fromMap parses complete valid map 1 0 0 0s 100%
fromMap prefers expiresAt over a duration on the same row 1 0 0 0s 100%
fromMap reads a row saved with duration as ending at mutedAt plus duration 1 0 0 0s 100%
fromMap reads a row saved with no duration and no expiresAt as permanent 1 0 0 0s 100%
starting a mute with no duration is permanent 1 0 0 0s 100%
starting a timed mute ends it at mutedAt plus duration 1 0 0 0s 100%
toMap does not include mutedUserId 1 0 0 0.001s 100%
toMap includes all non-mutedUserId fields 1 0 0 0s 100%
toRow is toMap plus the muted member's userId 1 0 0 0.012s 100%
toRow read back by fromMap gives the same mute 1 0 0 0s 100%