Skip to content

Commit

Permalink
Scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
morgen-peschke committed Sep 6, 2024
1 parent e558b8f commit 425623a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion munit/shared/src/main/scala/munit/TestTransforms.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ trait TestTransforms { this: BaseFunSuite =>
*
* Failures that are not `FailExceptionLike` subclasses will be wrapped, if needed.
*/
def munitAppendToFailureMessage(buildSuffix: Test => Option[String]): TestTransform =
def munitAppendToFailureMessage(
buildSuffix: Test => Option[String]
): TestTransform =
new TestTransform(
"failureSuffix",
{ t =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ package munit

class TestTransformFrameworkSuite extends munit.FunSuite {
override val munitTestTransforms: List[TestTransform] = List(
new TestTransform("ok", test => if (test.name == "hello") test.withName(test.name + "-ok") else test),
munitAppendToFailureMessage(t => if (t.name.startsWith("suffix")) Some("==> extra info") else None)
new TestTransform(
"ok",
test =>
if (test.name == "hello") test.withName(test.name + "-ok") else test
),
munitAppendToFailureMessage(t =>
if (t.name.startsWith("suffix")) Some("==> extra info") else None
)
)

test("hello") {}
Expand Down

0 comments on commit 425623a

Please sign in to comment.