Coverage Summary for Class: SetWeatherLocationsLocalUseCase (multi.platform.weather.shared.domain.weather.usecase)

Class Class, % Method, % Branch, % Line, % Instruction, %
SetWeatherLocationsLocalUseCase 100% (1/1) 100% (3/3) 100% (4/4) 100% (18/18)


 @file:Suppress("UNCHECKED_CAST")
 
 package multi.platform.weather.shared.domain.weather.usecase
 
 import multi.platform.core.shared.domain.common.usecase.CoreUseCase
 import multi.platform.weather.shared.domain.weather.WeatherRepository
 import multi.platform.weather.shared.domain.weather.entity.WeatherLocation
 
 class SetWeatherLocationsLocalUseCase(
     private val weatherRepository: WeatherRepository,
 ) : CoreUseCase {
     override suspend fun call(vararg args: Any?): Boolean =
         weatherRepository.setWeatherLocationsLocal(args[0] as List<WeatherLocation>)
 
     override suspend fun onError(e: Exception) {
         throw e
     }
 }