Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cwa App Android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Foertsch
Cwa App Android
Commits
6f28aef9
Commit
6f28aef9
authored
4 years ago
by
BMItter
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted misleading fun names
parent
ddff543f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/nearby/modules/diagnosiskeyprovider/DefaultDiagnosisKeyProviderTest.kt
+2
-2
2 additions, 2 deletions
...s/diagnosiskeyprovider/DefaultDiagnosisKeyProviderTest.kt
with
2 additions
and
2 deletions
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/nearby/modules/diagnosiskeyprovider/DefaultDiagnosisKeyProviderTest.kt
+
2
−
2
View file @
6f28aef9
...
@@ -51,7 +51,7 @@ class DefaultDiagnosisKeyProviderTest : BaseTest() {
...
@@ -51,7 +51,7 @@ class DefaultDiagnosisKeyProviderTest : BaseTest() {
)
)
@Test
@Test
fun
`
key
provi
sion
is
used
on
older
ENF
versions`
()
{
fun
`provi
de
diagnosis
keys
with
outdated
ENF
versions`
()
{
coEvery
{
googleAPIVersion
.
isAtLeast
(
GoogleAPIVersion
.
V15
)
}
returns
false
coEvery
{
googleAPIVersion
.
isAtLeast
(
GoogleAPIVersion
.
V15
)
}
returns
false
val
provider
=
createProvider
()
val
provider
=
createProvider
()
...
@@ -82,7 +82,7 @@ class DefaultDiagnosisKeyProviderTest : BaseTest() {
...
@@ -82,7 +82,7 @@ class DefaultDiagnosisKeyProviderTest : BaseTest() {
}
}
@Test
@Test
fun
`
quota
is
consumed
silentl
y`
()
{
fun
`
provide
diagnosis
key
when
quota
is
empt
y`
()
{
coEvery
{
googleAPIVersion
.
isAtLeast
(
GoogleAPIVersion
.
V15
)
}
returns
true
coEvery
{
googleAPIVersion
.
isAtLeast
(
GoogleAPIVersion
.
V15
)
}
returns
true
coEvery
{
submissionQuota
.
consumeQuota
(
any
())
}
returns
false
coEvery
{
submissionQuota
.
consumeQuota
(
any
())
}
returns
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment