Skip to content
Snippets Groups Projects
Unverified Commit 8b86e852 authored by Mohamed's avatar Mohamed Committed by GitHub
Browse files

Collect test result data (EXPOSUREAPP-4820) (#2372)


* Un-comment TestDonor

* Rename to TestResultDonor

* Implement basic setup

* Handle donation conditions

* Collect test result metadata after user consent

* Move test-metadata to ViewModel and save risk level

* Use RiskLevelStorage

* Map RiskLevel according to specs

* Map some metadata

* klint

* formatting

* Save time at pending result received

* Refactoring

* Add unit tests

* lint

* Calculate hoursDifference based on test type

* Calculate hoursSinceHighRiskWarningAtTestRegistration

* Fix test

* Add more tests

* Calculate hoursSinceHighRiskWarningAtTestRegistration

* Rename

* Add comment

* Save test result at registration time

* Add logs

* Fix detekt

* Refactor testResultAtRegistration

* Add unit tests and refactor clearing the settings

* Add more unit tests

* Reformat

* Use timestamper

* Change flag

* Ignore flaky test

* Ignore flaky test

* Remove view model tests which cause sonar to fail all the time

* Clean on success

* Use config provided through request

* Create test result donor settings

* lint

* Revert test visibility

* Create a separate class for TestResult collection

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 631e68a7
No related branches found
No related tags found
No related merge requests found
Showing
with 627 additions and 34 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment