Gradle Test Run :app:testDevDebugUnitTest

ProfileViewModelTest

summary

97

tests

0

failures

0

skipped

13.134s

duration

100%

successful

Child Tests Failures Skipped Duration Success rate
blockUser - error sets error 1 0 0 0.079s 100%
blockUser - success sets isBlockedByViewer 1 0 0 0.183s 100%
blockUser clears isFollowingTarget and decrements followerCount 1 0 0 0.081s 100%
blockUser with null auth user does nothing 1 0 0 0.102s 100%
claimSuperShyTrial error sets error 1 0 0 0.108s 100%
claimSuperShyTrial success updates hasClaimedSuperShyTrial 1 0 0 0.212s 100%
clearError clears error 1 0 0 0.100s 100%
clearReportSubmitted clears report state 1 0 0 0.182s 100%
createProfile accepts user at minimum age boundary 1 0 0 0.126s 100%
createProfile rejects underage user 1 0 0 0.091s 100%
followUser - error reverts optimistic update 1 0 0 0.178s 100%
followUser - success sets isFollowingTarget and increments count 1 0 0 0.081s 100%
followUser when blocked by target is no-op 1 0 0 0.131s 100%
followUser when viewer blocked target is no-op 1 0 0 0.134s 100%
followUser with null auth user does nothing 1 0 0 0.114s 100%
init sets currentUserId from auth 1 0 0 0.106s 100%
init with no auth user sets empty currentUserId 1 0 0 0.120s 100%
loadProfile - a transport failure is NOT reported as a block (SHY-0348) 1 0 0 0.112s 100%
loadProfile - a visible profile from the server stays visible (SHY-0348) 1 0 0 0.095s 100%
loadProfile - blocked by target does NOT record visit 1 0 0 0.178s 100%
loadProfile - blocked list error defaults to not blocked 1 0 0 0.152s 100%
loadProfile - detects target blocked viewer 1 0 0 0.155s 100%
loadProfile - detects viewer blocked target 1 0 0 0.158s 100%
loadProfile - error sets error state 1 0 0 0.127s 100%
loadProfile - expired suspension on other user does NOT set isTargetSuspended 1 0 0 0.158s 100%
loadProfile - hidden online status shows offline 1 0 0 0.106s 100%
loadProfile - hidden online status with currentRoomId has null activeRoomId 1 0 0 0.092s 100%
loadProfile - hideFollowing is set from user 1 0 0 0.253s 100%
loadProfile - no auth user does nothing 1 0 0 0.127s 100%
loadProfile - offline user with currentRoomId has null activeRoomId 1 0 0 0.166s 100%
loadProfile - offline when lastSeenAt is old 1 0 0 0.096s 100%
loadProfile - online user with currentRoomId and active room has activeRoomId set 1 0 0 0.153s 100%
loadProfile - online user with currentRoomId but closed room has null activeRoomId 1 0 0 0.147s 100%
loadProfile - online user with currentRoomId but missing room has null activeRoomId 1 0 0 0.155s 100%
loadProfile - online when lastSeenAt is recent 1 0 0 0.133s 100%
loadProfile - other user does NOT set stalker counts 1 0 0 0.089s 100%
loadProfile - other user records profile visit 1 0 0 0.100s 100%
loadProfile - other user sets isOwnProfile false 1 0 0 0.144s 100%
loadProfile - other user with currentUser in followerIds sets isFollowingTarget 1 0 0 0.101s 100%
loadProfile - other user without currentUser in followerIds clears isFollowingTarget 1 0 0 0.127s 100%
loadProfile - own profile does NOT record visit 1 0 0 0.105s 100%
loadProfile - own profile even if suspended loads normally 1 0 0 0.104s 100%
loadProfile - own profile loads user 1 0 0 0.154s 100%
loadProfile - own profile sets stalker counts from user 1 0 0 0.146s 100%
loadProfile - own profile skips uniqueId generation when nonzero 1 0 0 0.106s 100%
loadProfile - own profile triggers uniqueId generation when zero 1 0 0 0.108s 100%
loadProfile - own profile with currentUid is treated as own 1 0 0 0.118s 100%
loadProfile - own profile with empty string is treated as own 1 0 0 0.115s 100%
loadProfile - own profile with zero stalker counts 1 0 0 0.165s 100%
loadProfile - permanently suspended other user sets isTargetSuspended 1 0 0 0.138s 100%
loadProfile - suspended other user sets isTargetSuspended 1 0 0 0.135s 100%
loadProfile - the SERVER's block is honoured even when the document does not show it (SHY-0348) 1 0 0 0.107s 100%
loadProfile - uniqueId generation error sets error 1 0 0 0.203s 100%
loadProfile sets follower and following counts 1 0 0 0.113s 100%
reportUser evidence upload failure sets reportError 1 0 0 0.141s 100%
reportUser failure sets reportError 1 0 0 0.102s 100%
reportUser success sets reportSubmitted 1 0 0 0.113s 100%
reportUser when reporter fetch fails sets reportError 1 0 0 0.114s 100%
reportUser with evidence uploads images first 1 0 0 0.170s 100%
reportUser with no loaded user does nothing 1 0 0 0.124s 100%
reportUser with null auth user does nothing 1 0 0 0.232s 100%
saveProfile - error sets error 1 0 0 0.137s 100%
saveProfile - no provider info shows error 1 0 0 0.077s 100%
saveProfile - success sets profileSaved 1 0 0 0.181s 100%
saveProfile does not set resolvedUniqueId when creation fails 1 0 0 0.082s 100%
saveProfile sets resolvedUniqueId on authRepository after successful creation 1 0 0 0.094s 100%
saveProfileEdits - error sets error 1 0 0 0.168s 100%
saveProfileEdits - null nationality omits field 1 0 0 0.139s 100%
saveProfileEdits - success with nationality 1 0 0 0.135s 100%
saveProfileEdits with null auth user does nothing 1 0 0 0.101s 100%
testPurchaseSuperShy failure sets error 1 0 0 0.139s 100%
testPurchaseSuperShy success reloads profile 1 0 0 0.126s 100%
toggleEditing flips isEditing 1 0 0 0.120s 100%
unblockUser - error sets error 1 0 0 0.147s 100%
unblockUser - success clears isBlockedByViewer 1 0 0 0.090s 100%
unblockUser with null auth user does nothing 1 0 0 0.177s 100%
unfollowUser - error reverts optimistic update 1 0 0 0.142s 100%
unfollowUser - success clears isFollowingTarget and decrements count 1 0 0 0.113s 100%
unfollowUser with null auth user does nothing 1 0 0 0.221s 100%
updateDisplayName - error sets error 1 0 0 0.111s 100%
updateDisplayName - success updates user 1 0 0 0.132s 100%
updateDisplayName with null auth user does nothing 1 0 0 0.099s 100%
uploadCoverPhoto - deletes old cover after successful upload 1 0 0 0.141s 100%
uploadCoverPhoto - success updates user 1 0 0 0.163s 100%
uploadCoverPhoto - upload error sets error 1 0 0 0.076s 100%
uploadCoverPhoto uses covers folder 1 0 0 0.151s 100%
uploadProfilePhoto - deletes old photo after successful upload 1 0 0 0.191s 100%
uploadProfilePhoto - no old photo skips delete 1 0 0 0.196s 100%
uploadProfilePhoto - save url error sets error 1 0 0 0.141s 100%
uploadProfilePhoto - save url failure does not delete old photo 1 0 0 0.265s 100%
uploadProfilePhoto - success updates user 1 0 0 0.149s 100%
uploadProfilePhoto - upload error sets error 1 0 0 0.118s 100%
uploadProfilePhoto - upload failure does not delete old photo 1 0 0 0.101s 100%
uploadProfilePhoto uses profiles folder 1 0 0 0.140s 100%
uploadProfilePhoto with null auth user does nothing 1 0 0 0.108s 100%
validateSuperShyPurchase failure sets error 1 0 0 0.142s 100%
validateSuperShyPurchase success reloads profile 1 0 0 0.223s 100%