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

Unleash / unleash-android / 10075269522

24 Jul 2024 10:50AM UTC coverage: 69.676% (+4.4%) from 65.26%
10075269522

Pull #64

github

web-flow
Merge edfc3794f into 4fb5c6315
Pull Request #64: tests: test metrics sender

178 of 280 branches covered (63.57%)

Branch coverage included in aggregate %.

532 of 739 relevant lines covered (71.99%)

4.59 hits per line

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

62.5
/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
 */
10
data class ToggleResponse(
14✔
11
    val status: Status,
6✔
12
    val toggles: Map<String, Toggle> = emptyMap(),
5✔
13
    val error: Exception? = null) {
8✔
14
    fun isFetched() = status.isSuccess()
×
15
    fun isNotModified() = status.isNotModified()
×
16
    fun isFailed() = status.isFailed()
×
17
}
1✔
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