Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
  • Loading branch information
ellykits committed Feb 26, 2024
1 parent d4d3c48 commit 2e9bced
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,13 @@ constructor(
}
if (resourceIdPair != null) {
val (resourceType, resourceId) = resourceIdPair
val group =
loadResource(resourceType = resourceType, resourceIdentifier = resourceId) as Group?
if (group != null) {
val resource = loadResource(resourceType = resourceType, resourceIdentifier = resourceId)

Check warning on line 433 in android/quest/src/main/java/org/smartregister/fhircore/quest/ui/questionnaire/QuestionnaireViewModel.kt

View check run for this annotation

Codecov / codecov/patch

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/questionnaire/QuestionnaireViewModel.kt#L432-L433

Added lines #L432 - L433 were not covered by tests
if (resource != null) {
val system =
context.getString(
org.smartregister.fhircore.engine.R.string.sync_strategy_related_entity_location_system,

Check warning on line 437 in android/quest/src/main/java/org/smartregister/fhircore/quest/ui/questionnaire/QuestionnaireViewModel.kt

View check run for this annotation

Codecov / codecov/patch

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/questionnaire/QuestionnaireViewModel.kt#L435-L437

Added lines #L435 - L437 were not covered by tests
)
group.meta.tag.filter { coding -> coding.system == system }.forEach(this.meta::addTag)
resource.meta.tag.filter { coding -> coding.system == system }.forEach(this.meta::addTag)

Check warning on line 439 in android/quest/src/main/java/org/smartregister/fhircore/quest/ui/questionnaire/QuestionnaireViewModel.kt

View check run for this annotation

Codecov / codecov/patch

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/questionnaire/QuestionnaireViewModel.kt#L439

Added line #L439 was not covered by tests
}
}
}
Expand Down

0 comments on commit 2e9bced

Please sign in to comment.