Coverage Summary for Class: CheckerUtilsKt (cloud.mindbox.mobile_sdk.utils)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| CheckerUtilsKt |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(11/11)
|
| CheckerUtilsKt$allAllow$1 |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(11/11)
|
| Total |
100%
(2/2)
|
|
100%
(2/2)
|
100%
(22/22)
|
package cloud.mindbox.mobile_sdk.utils
import cloud.mindbox.mobile_sdk.inapp.domain.interfaces.checkers.Checker
import cloud.mindbox.mobile_sdk.inapp.domain.models.ShowReservation
internal fun allAllow(reservations: Collection<ShowReservation>, vararg checkers: Checker): Boolean =
loggingRunCatching(defaultValue = true) {
checkers.all { it.check(reservations) }
}