[PM-21726] Move OmitFromCoverage to annotation module (#5214)

This commit is contained in:
Patrick Honkonen
2025-05-19 09:19:16 -04:00
committed by GitHub
parent 4d142a6a5c
commit 07e4e6a806
85 changed files with 130 additions and 75 deletions

View File

@@ -38,6 +38,8 @@ android {
}
dependencies {
implementation(project(":annotation"))
implementation(libs.google.hilt.android)
ksp(libs.google.hilt.compiler)
implementation(libs.kotlinx.coroutines.android)

View File

@@ -1,13 +0,0 @@
package com.bitwarden.core.annotation
/**
* Used to omit the annotated class from test coverage reporting. This should be used sparingly and
* is intended for non-testable classes that are placed in packages along with testable ones.
*/
@Target(
AnnotationTarget.CLASS,
AnnotationTarget.FILE,
AnnotationTarget.FUNCTION,
)
@Retention(AnnotationRetention.BINARY)
annotation class OmitFromCoverage

View File

@@ -1,6 +1,6 @@
package com.bitwarden.core.data.repository.util
import com.bitwarden.core.annotation.OmitFromCoverage
import com.bitwarden.annotation.OmitFromCoverage
import com.bitwarden.core.data.repository.model.DataState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow

View File

@@ -2,7 +2,7 @@
package com.bitwarden.core.data.util
import com.bitwarden.core.annotation.OmitFromCoverage
import com.bitwarden.annotation.OmitFromCoverage
import java.util.concurrent.ConcurrentHashMap
/**