Coverage Summary for Class: SnackbarElementDtoDataFiller (cloud.mindbox.mobile_sdk.inapp.data.managers.data_filler)

Class Class, % Method, % Branch, % Line, % Instruction, %
SnackbarElementDtoDataFiller 100% (1/1) 100% (2/2) 100% (4/4) 100% (6/6) 100% (30/30)


 package cloud.mindbox.mobile_sdk.inapp.data.managers.data_filler
 
 import cloud.mindbox.mobile_sdk.inapp.data.dto.ElementDto
 
 internal class SnackbarElementDtoDataFiller(private val closeButtonSnackbarElementDtoDataFiller: CloseButtonSnackbarElementDtoDataFiller) : DataFiller<List<ElementDto?>?> {
     override fun fillData(item: List<ElementDto?>?): List<ElementDto?>? = item?.map { elementDto ->
         when (elementDto) {
             is ElementDto.CloseButtonElementDto -> {
                 closeButtonSnackbarElementDtoDataFiller.fillData(elementDto)
             }
             null -> null
         }
     }
 }