Coverage Summary for Class: GetWeatherLocationsNetworkUseCase (multi.platform.weather.shared.domain.weather.usecase)
Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
GetWeatherLocationsNetworkUseCase |
100%
(1/1)
|
100%
(3/3)
|
|
100%
(8/8)
|
100%
(35/35)
|
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 GetWeatherLocationsNetworkUseCase(
private val weatherRepository: WeatherRepository,
) : CoreUseCase {
override suspend fun call(vararg args: Any?): List<WeatherLocation> =
weatherRepository.getWeatherLocationsNetwork(
args[0] as Int,
args[1] as Int,
args[2] as String?,
args[3] as String?,
)
override suspend fun onError(e: Exception) {
throw e
}
}