Coverage Summary for Class: ConversationRepositoryTest (com.greybox.projectmesh.messaging.repository)
| Class | Method, % | Branch, % | Line, % |
|---|---|---|---|
| ConversationRepositoryTest | 100% (12/12) | 100% (19/19) | |
| ConversationRepositoryTest$getConversationById_delegatesToDao_andReturnsResult$1 | 100% (1/1) | 100% (14/14) | |
| ConversationRepositoryTest$getConversationById_whenDaoReturnsNull_returnsNull$1 | 100% (1/1) | 100% (5/5) | |
| ConversationRepositoryTest$getOrCreateConversation_whenExists_doesNotInsert_andReturnsExisting$1 | 100% (1/1) | 100% (17/17) | |
| ConversationRepositoryTest$getOrCreateConversation_whenMissing_createsAndInsertsConversation$1 | 100% (1/1) | 50% (2/4) | 100% (18/18) |
| ConversationRepositoryTest$getOrCreateConversation_whenMissing_createsAndInsertsConversation$1$4 | 100% (1/1) | 50% (1/2) | 100% (1/1) |
| ConversationRepositoryTest$markAsRead_clearsUnreadCount$1 | 100% (1/1) | 100% (3/3) | |
| ConversationRepositoryTest$updateUserStatus_callsDao_andDoesNotThrow$1 | 100% (1/1) | 100% (2/2) | |
| ConversationRepositoryTest$updateUserStatus_whenDaoThrows_exceptionIsCaught$1 | 100% (1/1) | 100% (5/5) | |
| ConversationRepositoryTest$updateWithMessage_callsUpdateLastMessageTwice_andIncrementsUnread_ifSenderNotMe$1 | 100% (1/1) | 100% (11/11) | |
| ConversationRepositoryTest$updateWithMessage_doesNotIncrementUnread_ifSenderIsMe$1 | 100% (1/1) | 100% (11/11) | |
| Total | 100% (22/22) | 50% (3/6) | 100% (106/106) |
Source code is not available