From f73196f512d19f2b9a116574f6ca3e5a38de7cf8 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 25 Jan 2025 02:57:38 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.6 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 8663f07d..c72a16ba 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.5" +version = "3.8.6" style = default maxColumn = 120 align.preset = most From 4a6a66672d0d325dfa9a53e6eb786cc58fee0415 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 25 Jan 2025 02:57:59 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.6 Executed command: scalafmt --non-interactive --- .../dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala | 9 +++------ .../dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala index 54ecf09b..988f8522 100644 --- a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala +++ b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala @@ -43,19 +43,16 @@ class AmqpFieldValueSpec extends AnyFlatSpecLike with PropertyChecks with Matche AmqpFieldValue.unsafeFrom("fs2") should be(StringVal("fs2")) AmqpFieldValue.unsafeFrom(arrayVal.toValueWriterCompatibleJava) should be(arrayVal) } - it should "preserve the same value after a round-trip through impure and from" in { + it should "preserve the same value after a round-trip through impure and from" in forAll { (amqpHeaderVal: AmqpFieldValue) => AmqpFieldValue.unsafeFrom(amqpHeaderVal.toValueWriterCompatibleJava) == amqpHeaderVal } - } - it should "preserve the same values after a round-trip through the Java ValueReader and ValueWriter" in { + it should "preserve the same values after a round-trip through the Java ValueReader and ValueWriter" in forAll(assertThatValueIsPreservedThroughJavaWriteAndRead _) - } - it should "preserve a specific StringVal that previously failed after a round-trip through the Java ValueReader and ValueWriter" in { + it should "preserve a specific StringVal that previously failed after a round-trip through the Java ValueReader and ValueWriter" in assertThatValueIsPreservedThroughJavaWriteAndRead(StringVal("kyvmqzlbjivLqQFukljghxdowkcmjklgSeybdy")) - } it should "preserve a specific DateVal created from an Instant that has millisecond accuracy after a round-trip through the Java ValueReader and ValueWriter" in { val instant = Instant.parse("4000-11-03T20:17:29.57Z") diff --git a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala index e3d3dcaa..0d6aca00 100644 --- a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala +++ b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala @@ -27,12 +27,11 @@ class AmqpPropertiesSpec extends AnyFlatSpecLike with PropertyChecks with Matche import AmqpPropertiesArbs._ - it should s"convert from and to Java AMQP.BasicProperties" in { + it should s"convert from and to Java AMQP.BasicProperties" in forAll { (amqpProperties: AmqpProperties) => val basicProps = amqpProperties.asBasicProps AmqpProperties.unsafeFrom(basicProps) should be(amqpProperties) } - } it should "create an empty amqp properties" in { AmqpProperties.empty should be( From c1b6141c1085d6992d280972a5485b0e5837c99d Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 25 Jan 2025 02:57:59 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.6' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index fca989e0..5c131c73 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.7.0 913217c78deacdad6f729936c2d497f1f10aa677 + +# Scala Steward: Reformat with scalafmt 3.8.6 +4a6a66672d0d325dfa9a53e6eb786cc58fee0415