Gradle Test Run :app:testDevDebugUnitTest

ChatRoomFromMapTest

summary

38

tests

0

failures

0

skipped

0.134s

duration

100%

successful

Child Tests Failures Skipped Duration Success rate
default constructor uses DEFAULT_SEATS 1 0 0 0s 100%
DEFAULT_SEATS has MAX_SEATS entries all empty 1 0 0 0.001s 100%
DEFAULT_SEATS is same instance on repeated access 1 0 0 0s 100%
DEFAULT_SEATS keys are zero-indexed strings 1 0 0 0s 100%
fromMap creates all MAX_SEATS seats even when map has partial data 1 0 0 0s 100%
fromMap defaults lastGiftEvent to null when missing 1 0 0 0s 100%
fromMap defaults lastGiftEvent to null when null 1 0 0 0s 100%
fromMap defaults name to empty string when missing 1 0 0 0s 100%
fromMap defaults participantIds to empty when missing 1 0 0 0.001s 100%
fromMap defaults requireApproval to false when missing 1 0 0 0s 100%
fromMap defaults state to ACTIVE for invalid value 1 0 0 0s 100%
fromMap defaults state to ACTIVE when missing 1 0 0 0.053s 100%
fromMap filters non-string items from participantIds 1 0 0 0s 100%
fromMap handles empty map with all defaults 1 0 0 0.001s 100%
fromMap of toMap produces equivalent room 1 0 0 0.006s 100%
fromMap parses CLOSED state 1 0 0 0s 100%
fromMap parses complete valid map 1 0 0 0s 100%
fromMap parses lastGiftEvent 1 0 0 0s 100%
fromMap parses OWNER_AWAY state 1 0 0 0.010s 100%
fromMap parses pendingInvites with string values 1 0 0 0.001s 100%
fromMap prefers voiceRoomName over agoraChannelName 1 0 0 0s 100%
fromMap reads legacy agoraChannelName key for backward compat 1 0 0 0.001s 100%
fromMap with empty seats map produces all default seats 1 0 0 0s 100%
fromMap with kickInfo map parses correctly 1 0 0 0s 100%
fromMap with lastGiftEvent partial map populates known fields with defaults for rest 1 0 0 0.024s 100%
fromMap with null bannedUserIds defaults to empty set 1 0 0 0.001s 100%
fromMap with null hostIds defaults to empty set 1 0 0 0.010s 100%
fromMap with null kickInfo defaults to empty map 1 0 0 0.001s 100%
fromMap with null participantIds defaults to empty set 1 0 0 0s 100%
fromMap with null seats produces all default seats 1 0 0 0.001s 100%
resolveRole prioritizes OWNER over HOST 1 0 0 0s 100%
resolveRole returns ATTENDEE for regular user 1 0 0 0.001s 100%
resolveRole returns HOST when userId in hostIds 1 0 0 0s 100%
resolveRole returns OWNER when userId matches ownerId 1 0 0 0s 100%
toMap produces correct map 1 0 0 0.002s 100%
toMap seats are serialized as nested maps 1 0 0 0s 100%
toMap serializes lastGiftEvent 1 0 0 0s 100%
toMap serializes null lastGiftEvent 1 0 0 0s 100%