This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
commit e1dd1c01c31d496e9107eebab2cadf38c9c88b49
Author: scala-steward-asf[bot]
<147768647+scala-steward-asf[bot]@users.noreply.github.com>
AuthorDate: Sun Jun 16 00:05:05 2024 +0000
Reformat with scalafmt 3.8.2
Executed command: scalafmt --non-interactive
---
.../scala/io/grpc/testing/integration2/Settings.scala | 9 ++++++---
.../example/myapp/helloworld/ErrorReportingSpec.scala | 3 ++-
.../apache/pekko/grpc/internal/MetadataImplSpec.scala | 3 +--
.../apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala | 16 +++++-----------
.../src/sbt-test/gen-java/01-gen-basic-java/build.sbt | 3 ++-
.../src/sbt-test/gen-java/04-crash-on-keywords/build.sbt | 3 ++-
6 files changed, 18 insertions(+), 19 deletions(-)
diff --git
a/interop-tests/src/main/scala/io/grpc/testing/integration2/Settings.scala
b/interop-tests/src/main/scala/io/grpc/testing/integration2/Settings.scala
index c1cc57d5..300e18da 100644
--- a/interop-tests/src/main/scala/io/grpc/testing/integration2/Settings.scala
+++ b/interop-tests/src/main/scala/io/grpc/testing/integration2/Settings.scala
@@ -68,9 +68,12 @@ object Settings {
| --use_tls=true|false Whether to use TLS. Default
${defaultSettings.useTls}
| --use_test_ca=true|false Whether to trust our fake CA.
Requires --use_tls=true
| to have effect. Default
${defaultSettings.useTestCa}
- | --use_pekkoHttp=true|false Whether to use pekko-http instead
of Netty. Default ${defaultSettings.usePekkoHttp}
- | --default_service_account Email of GCE default service
account. Default ${defaultSettings.defaultServiceAccount}
- | --service_account_key_file Path to service account json key
file. ${defaultSettings.serviceAccountKeyFile}
+ | --use_pekkoHttp=true|false Whether to use pekko-http instead
of Netty. Default ${defaultSettings
+ .usePekkoHttp}
+ | --default_service_account Email of GCE default service
account. Default ${defaultSettings
+ .defaultServiceAccount}
+ | --service_account_key_file Path to service account json key
file. ${defaultSettings
+ .serviceAccountKeyFile}
| --oauth_scope Scope for OAuth tokens. Default
${defaultSettings.oauthScope}
""".stripMargin)
System.exit(-1)
diff --git
a/plugin-tester-java/src/test/scala/example/myapp/helloworld/ErrorReportingSpec.scala
b/plugin-tester-java/src/test/scala/example/myapp/helloworld/ErrorReportingSpec.scala
index 83fc07b8..44c07000 100644
---
a/plugin-tester-java/src/test/scala/example/myapp/helloworld/ErrorReportingSpec.scala
+++
b/plugin-tester-java/src/test/scala/example/myapp/helloworld/ErrorReportingSpec.scala
@@ -50,7 +50,8 @@ class ErrorReportingSpec extends AnyWordSpec with Matchers
with ScalaFutures wit
Http(sys)
.newServerAt("127.0.0.1", 0)
- .bind((req => handler(req)): pekko.japi.function.Function[HttpRequest,
CompletionStage[
+ .bind((req => handler(req)): pekko.japi.function.Function[HttpRequest,
+ CompletionStage[
HttpResponse]])
.toCompletableFuture
.get
diff --git
a/runtime/src/test/scala/org/apache/pekko/grpc/internal/MetadataImplSpec.scala
b/runtime/src/test/scala/org/apache/pekko/grpc/internal/MetadataImplSpec.scala
index 7aa38a2e..b02f713d 100644
---
a/runtime/src/test/scala/org/apache/pekko/grpc/internal/MetadataImplSpec.scala
+++
b/runtime/src/test/scala/org/apache/pekko/grpc/internal/MetadataImplSpec.scala
@@ -25,8 +25,7 @@ object MetadataImplSpec {
val TEXT_ENTRIES = List(("key-a", "value-a"), ("key-c", "value-c"),
("key-b", "value-b"))
val BINARY_ENTRIES = List(
- ("key-a-bin", ByteString.fromInts(10, 20, 30, 40)),
- ("key-c-bin", ByteString.fromInts(11, 21, 31, 41)),
+ ("key-a-bin", ByteString.fromInts(10, 20, 30, 40)), ("key-c-bin",
ByteString.fromInts(11, 21, 31, 41)),
("key-b-bin", ByteString.fromInts(12, 22, 32, 42)))
val DUPE_TEXT_KEY = "key-dupe"
diff --git
a/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
b/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
index 3fe0b748..9fdffe71 100644
---
a/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
+++
b/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
@@ -29,8 +29,7 @@ class HeadersSpec extends AnyWordSpec with Matchers {
"use percent-encoding" in {
// test cases taken from
https://github.com/grpc/grpc-java/blob/79e75bace40cea7e4be72e7dcd1f41c3ad6ee857/api/src/test/java/io/grpc/StatusTest.java#L65
val inAndExpectedOut = Table(
- ("raw input", "expected encoded value"),
- ("my favorite character is i", "my favorite character is i"),
+ ("raw input", "expected encoded value"), ("my favorite character is
i", "my favorite character is i"),
("my favorite character is \n", "my favorite character is %0A"),
("my favorite character is \u0000", "my favorite character is %00"),
("my favorite character is %", "my favorite character is %25"),
@@ -52,10 +51,8 @@ class HeadersSpec extends AnyWordSpec with Matchers {
"should decode percent-encoded values" in {
// test cases taken from
https://github.com/grpc/grpc-java/blob/79e75bace40cea7e4be72e7dcd1f41c3ad6ee857/api/src/test/java/io/grpc/StatusTest.java#L65
val inAndExpectedOut = Table(
- ("raw input", "expected decoded value"),
- (Array[Byte]('H', 'e', 'l', 'l', 'o'), "Hello"),
- (Array[Byte]('H', '%', '6', '1', 'o'), "Hao"),
- (Array[Byte]('H', '%', '0', 'A', 'o'), "H\no"),
+ ("raw input", "expected decoded value"), (Array[Byte]('H', 'e', 'l',
'l', 'o'), "Hello"),
+ (Array[Byte]('H', '%', '6', '1', 'o'), "Hao"), (Array[Byte]('H', '%',
'0', 'A', 'o'), "H\no"),
(Array[Byte]('%', 'F', '0', '%', '9', '0', '%', '8', '0', '%', '8',
'1'), "𐀁"),
(Array[Byte]('a', 'b', 'c', '%', 'C', '5', '%', '8', '2'), "abcł"))
@@ -67,11 +64,8 @@ class HeadersSpec extends AnyWordSpec with Matchers {
"should decode as is in case two chars following percent cannot be decoded
as hex" in {
val inAndExpectedOut = Table(
- ("raw input", "expected decoded value"),
- (Array[Byte]('%', 'G'), "%G"),
- (Array[Byte]('%', 'G', '0'), "%G0"),
- (Array[Byte]('%', 'G', '0', '%', ',', '0'), "%G0%,0"),
- (Array[Byte]('%', '%', '0', '%', '%'), "%%0%%"))
+ ("raw input", "expected decoded value"), (Array[Byte]('%', 'G'),
"%G"), (Array[Byte]('%', 'G', '0'), "%G0"),
+ (Array[Byte]('%', 'G', '0', '%', ',', '0'), "%G0%,0"),
(Array[Byte]('%', '%', '0', '%', '%'), "%%0%%"))
forAll(inAndExpectedOut) { (in, expected) =>
val actual = `Status-Message`.parse(new String(in))
diff --git a/sbt-plugin/src/sbt-test/gen-java/01-gen-basic-java/build.sbt
b/sbt-plugin/src/sbt-test/gen-java/01-gen-basic-java/build.sbt
index 8e72f39a..fa3de259 100644
--- a/sbt-plugin/src/sbt-test/gen-java/01-gen-basic-java/build.sbt
+++ b/sbt-plugin/src/sbt-test/gen-java/01-gen-basic-java/build.sbt
@@ -17,4 +17,5 @@ javacOptions += "-Xdoclint:all"
pekkoGrpcGeneratedLanguages := Seq(PekkoGrpc.Java)
-libraryDependencies += "com.google.protobuf" % "protobuf-java" %
org.apache.pekko.grpc.gen.BuildInfo.googleProtobufJavaVersion % "protobuf"
+libraryDependencies += "com.google.protobuf" % "protobuf-java" %
org.apache.pekko.grpc.gen.BuildInfo
+ .googleProtobufJavaVersion % "protobuf"
diff --git a/sbt-plugin/src/sbt-test/gen-java/04-crash-on-keywords/build.sbt
b/sbt-plugin/src/sbt-test/gen-java/04-crash-on-keywords/build.sbt
index 8e72f39a..fa3de259 100644
--- a/sbt-plugin/src/sbt-test/gen-java/04-crash-on-keywords/build.sbt
+++ b/sbt-plugin/src/sbt-test/gen-java/04-crash-on-keywords/build.sbt
@@ -17,4 +17,5 @@ javacOptions += "-Xdoclint:all"
pekkoGrpcGeneratedLanguages := Seq(PekkoGrpc.Java)
-libraryDependencies += "com.google.protobuf" % "protobuf-java" %
org.apache.pekko.grpc.gen.BuildInfo.googleProtobufJavaVersion % "protobuf"
+libraryDependencies += "com.google.protobuf" % "protobuf-java" %
org.apache.pekko.grpc.gen.BuildInfo
+ .googleProtobufJavaVersion % "protobuf"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]