| a permanent mute is in force at any time |
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 |
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 |
a timed mute is not in force at the moment it ends |
1 |
0 |
0 |
0s |
100% |
| an inactive mute is not in force |
an inactive mute is not in force |
1 |
0 |
0 |
0s |
100% |
| default values |
default values |
1 |
0 |
0 |
0s |
100% |
| fromMap handles empty map with defaults |
fromMap handles empty map with defaults |
1 |
0 |
0 |
0s |
100% |
| fromMap handles inactive mute |
fromMap handles inactive mute |
1 |
0 |
0 |
0s |
100% |
| fromMap handles null values |
fromMap handles null values |
1 |
0 |
0 |
0s |
100% |
| fromMap handles permanent mute with null expiresAt |
fromMap handles permanent mute with null expiresAt |
1 |
0 |
0 |
0s |
100% |
| fromMap of toMap round-trip preserves data except mutedUserId |
fromMap of toMap round-trip preserves data except mutedUserId |
1 |
0 |
0 |
0s |
100% |
| fromMap of toMap round-trip with null reason and expiresAt |
fromMap of toMap round-trip with null reason and expiresAt |
1 |
0 |
0 |
0s |
100% |
| fromMap parses complete valid map |
fromMap parses complete valid map |
1 |
0 |
0 |
0s |
100% |
| fromMap prefers expiresAt over a duration on the same row |
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 |
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 |
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 |
starting a mute with no duration is permanent |
1 |
0 |
0 |
0s |
100% |
| starting a timed mute ends it at mutedAt plus duration |
starting a timed mute ends it at mutedAt plus duration |
1 |
0 |
0 |
0s |
100% |
| toMap does not include mutedUserId |
toMap does not include mutedUserId |
1 |
0 |
0 |
0.001s |
100% |
| toMap includes all non-mutedUserId fields |
toMap includes all non-mutedUserId fields |
1 |
0 |
0 |
0s |
100% |
| toRow is toMap plus the muted member's userId |
toRow is toMap plus the muted member's userId |
1 |
0 |
0 |
0.012s |
100% |
| toRow read back by fromMap gives the same mute |
toRow read back by fromMap gives the same mute |
1 |
0 |
0 |
0s |
100% |