• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Unleash / unleash-android / 10061860395

23 Jul 2024 03:30PM UTC coverage: 10.108% (-4.7%) from 14.799%
10061860395

Pull #59

github

web-flow
Merge 5c3371efa into 9eb26bd6c
Pull Request #59: chore: coverall improvements

19 of 280 branches covered (6.79%)

Branch coverage included in aggregate %.

0 of 24 new or added lines in 4 files covered. (0.0%)

84 of 739 relevant lines covered (11.37%)

0.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/unleashandroidsdk/src/main/java/io/getunleash/android/polling/ToggleResponse.kt
1
package io.getunleash.android.polling
2

3
import io.getunleash.android.data.Toggle
4

5
/**
6
 * We use this out from the fetcher to not have to do convert the proxyresponse to a map we can work on everytime we want answer user calls
7
 * @param status Status of the request
8
 * @param toggles The parsed feature toggles map from the unleash proxy
9
 */
NEW
10
data class ToggleResponse(
×
NEW
11
    val status: Status,
×
NEW
12
    val toggles: Map<String, Toggle> = emptyMap(),
×
NEW
13
    val error: Exception? = null) {
×
NEW
14
    fun isFetched() = status.isSuccess()
×
NEW
15
    fun isNotModified() = status.isNotModified()
×
NEW
16
    fun isFailed() = status.isFailed()
×
NEW
17
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc