Skip to content

Commit

Permalink
Merge pull request #393 from scala-steward/update/scalafmt-core-3.8.2
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.8.2
  • Loading branch information
mergify[bot] authored Jul 10, 2024
2 parents 75c4503 + 425db4c commit badf9ac
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.8.2
ec597c4fe805f52f0b7b8607a0c12cb9aa88f460
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.1
version = 3.8.2
runner.dialect = scala212
fileOverride {
"glob:**.sbt" {
Expand Down
10 changes: 8 additions & 2 deletions src/test/scala/com/github/blemale/scaffeine/AsyncCacheSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class AsyncCacheSpec
val values =
cache.getAll(List("foo", "bar"), _.map(key => (key, "computed")).toMap)

values.futureValue should contain only ("foo" -> "present", "bar" -> "computed")
values.futureValue should contain only (
"foo" -> "present",
"bar" -> "computed"
)
}

"get or compute async all values" in {
Expand All @@ -66,7 +69,10 @@ class AsyncCacheSpec
keys => Future.successful(keys.map(key => (key, "computed")).toMap)
)

values.futureValue should contain only ("foo" -> "present", "bar" -> "computed")
values.futureValue should contain only (
"foo" -> "present",
"bar" -> "computed"
)
}

"put value" in {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class AsyncLoadingCacheSpec
cache.put("foo", Future.successful("present"))
val values = cache.getAll(List("foo", "bar"))

values.futureValue should contain only ("foo" -> "present", "bar" -> "loaded")
values.futureValue should contain only (
"foo" -> "present",
"bar" -> "loaded"
)
}

"get or bulk load all given values" in {
Expand All @@ -48,7 +51,10 @@ class AsyncLoadingCacheSpec
cache.put("foo", Future.successful("present"))
val values = cache.getAll(List("foo", "bar"))

values.futureValue should contain only ("foo" -> "present", "bar" -> "bulked")
values.futureValue should contain only (
"foo" -> "present",
"bar" -> "bulked"
)
}

"expose a synchronous view of itself" in {
Expand Down Expand Up @@ -83,7 +89,10 @@ class AsyncLoadingCacheSpec
cache.put("foo", Future.successful("present"))
val values = cache.getAll(List("foo", "bar"))

values.futureValue should contain only ("foo" -> "present", "bar" -> "loaded")
values.futureValue should contain only (
"foo" -> "present",
"bar" -> "loaded"
)
}

"get or bulk load all given values" in {
Expand All @@ -97,7 +106,10 @@ class AsyncLoadingCacheSpec
cache.put("foo", Future.successful("present"))
val values = cache.getAll(List("foo", "bar"))

values.futureValue should contain only ("foo" -> "present", "bar" -> "bulked")
values.futureValue should contain only (
"foo" -> "present",
"bar" -> "bulked"
)
}
}

Expand Down

0 comments on commit badf9ac

Please sign in to comment.