Ignore OnBoardingPresenter regarding code coverage.
This commit is contained in:
parent
78e5bf6f78
commit
1e6f52466f
3 changed files with 7 additions and 0 deletions
1
.idea/dictionaries/shared.xml
generated
1
.idea/dictionaries/shared.xml
generated
|
|
@ -2,6 +2,7 @@
|
||||||
<dictionary name="shared">
|
<dictionary name="shared">
|
||||||
<words>
|
<words>
|
||||||
<w>backstack</w>
|
<w>backstack</w>
|
||||||
|
<w>kover</w>
|
||||||
<w>onboarding</w>
|
<w>onboarding</w>
|
||||||
<w>textfields</w>
|
<w>textfields</w>
|
||||||
</words>
|
</words>
|
||||||
|
|
|
||||||
|
|
@ -203,6 +203,8 @@ koverMerged {
|
||||||
includes += "*Presenter"
|
includes += "*Presenter"
|
||||||
excludes += "*Fake*Presenter"
|
excludes += "*Fake*Presenter"
|
||||||
excludes += "io.element.android.appnav.loggedin.LoggedInPresenter$*"
|
excludes += "io.element.android.appnav.loggedin.LoggedInPresenter$*"
|
||||||
|
// Too small presenter, cannot reach the threshold.
|
||||||
|
excludes += "io.element.android.features.onboarding.impl.OnBoardingPresenter"
|
||||||
}
|
}
|
||||||
bound {
|
bound {
|
||||||
minValue = 90
|
minValue = 90
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ import androidx.compose.runtime.Composable
|
||||||
import io.element.android.libraries.architecture.Presenter
|
import io.element.android.libraries.architecture.Presenter
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Note: this Presenter is ignored regarding code coverage because it cannot reach the coverage threshold.
|
||||||
|
* When this presenter get more code in it, please remove the ignore rule in the kover configuration.
|
||||||
|
*/
|
||||||
class OnBoardingPresenter @Inject constructor(
|
class OnBoardingPresenter @Inject constructor(
|
||||||
) : Presenter<OnBoardingState> {
|
) : Presenter<OnBoardingState> {
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue