Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fs2 3.10-365636d -> 3.10.2 #273

Merged
merged 9 commits into from
Aug 23, 2024
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ lazy val connector = crossProject(JVMPlatform, JSPlatform, NativePlatform)
scalacOptions += "-Ykind-projector:underscores",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect" % "3.5.4",
"co.fs2" %%% "fs2-core" % "3.10-365636d",
"co.fs2" %%% "fs2-io" % "3.10-365636d",
"co.fs2" %%% "fs2-core" % "3.10.2",
"co.fs2" %%% "fs2-io" % "3.10.2",
"org.scodec" %%% "scodec-bits" % "1.1.38",
"org.scodec" %%% "scodec-core" % "2.2.2",
"org.scodec" %%% "scodec-cats" % "1.2.0",
Expand All @@ -150,6 +150,7 @@ lazy val connector = crossProject(JVMPlatform, JSPlatform, NativePlatform)
)
.nativeEnablePlugins(ScalaNativeBrewedConfigPlugin)
.nativeSettings(
libraryDependencies += "com.armanbilge" %%% "epollcat" % "0.1.6",
Test / nativeBrewFormulas += "s2n"
)
.dependsOn(sql)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Copyright (c) 2023-2024 by Takahiko Tominaga
* This software is licensed under the MIT License (MIT).
* For more information see LICENSE or https://opensource.org/licenses/MIT
*/

package ldbc

import munit.CatsEffectSuite

package object connector:

trait FTestPlatform extends CatsEffectSuite
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright (c) 2023-2024 by Takahiko Tominaga
* This software is licensed under the MIT License (MIT).
* For more information see LICENSE or https://opensource.org/licenses/MIT
*/

package ldbc

import cats.effect.unsafe.IORuntime

import epollcat.unsafe.EpollRuntime
import munit.CatsEffectSuite

package object connector:

trait FTestPlatform extends CatsEffectSuite:
override def munitIORuntime: IORuntime = EpollRuntime.global
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ package ldbc.connector
import cats.*
import cats.effect.*

import munit.CatsEffectSuite

import org.typelevel.otel4s.trace.Tracer

import ldbc.sql.Types
import ldbc.connector.exception.SQLException

class CallableStatementTest extends CatsEffectSuite:
class CallableStatementTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import cats.effect.*

import org.typelevel.otel4s.trace.Tracer

import munit.CatsEffectSuite

import ldbc.connector.data.MysqlType

class ClientPreparedStatementQueryTest extends CatsEffectSuite:
class ClientPreparedStatementQueryTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import java.time.*

import cats.effect.*

import munit.CatsEffectSuite

import org.typelevel.otel4s.trace.Tracer

import ldbc.connector.data.MysqlType

class ClientPreparedStatementUpdateTest extends CatsEffectSuite:
class ClientPreparedStatementUpdateTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ import com.comcast.ip4s.UnknownHostException

import cats.effect.*

import munit.CatsEffectSuite

import ldbc.sql.DatabaseMetaData
import ldbc.connector.exception.*

class ConnectionTest extends CatsEffectSuite:
class ConnectionTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ package ldbc.connector

import java.time.*

import munit.CatsEffectSuite

import ldbc.sql.{ ResultSet, ResultSetMetaData }

import ldbc.connector.util.Version
import ldbc.connector.data.*
import ldbc.connector.exception.SQLException
import ldbc.connector.net.packet.response.*

class ResultSetTest extends CatsEffectSuite:
class ResultSetTest extends FTestPlatform:

test("SQLException occurs when accessing the ResultSet after closing it.") {
val resultSet = buildResultSet(Vector.empty, Vector.empty, Version(0, 0, 0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import cats.effect.*

import org.typelevel.otel4s.trace.Tracer

import munit.{ AnyFixture, CatsEffectSuite }
import munit.AnyFixture

class SavepointTest extends CatsEffectSuite:
class SavepointTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import cats.effect.*

import org.typelevel.otel4s.trace.Tracer

import munit.CatsEffectSuite

import ldbc.connector.data.MysqlType

class ServerPreparedStatementQueryTest extends CatsEffectSuite:
class ServerPreparedStatementQueryTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import java.time.*

import cats.effect.*

import munit.CatsEffectSuite

import org.typelevel.otel4s.trace.Tracer

import ldbc.connector.data.MysqlType

class ServerPreparedStatementUpdateTest extends CatsEffectSuite:
class ServerPreparedStatementUpdateTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import org.typelevel.otel4s.trace.Tracer

import cats.effect.*

import munit.{ AnyFixture, CatsEffectSuite }
import munit.AnyFixture

import ldbc.connector.exception.*

class StatementBatchTest extends CatsEffectSuite:
class StatementBatchTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import org.typelevel.otel4s.trace.Tracer

import cats.effect.*

import munit.CatsEffectSuite

class StatementQueryTest extends CatsEffectSuite:
class StatementQueryTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ import org.typelevel.otel4s.trace.Tracer

import cats.effect.*

import munit.CatsEffectSuite

import ldbc.sql.Statement

class StatementUpdateTest extends CatsEffectSuite:
class StatementUpdateTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import cats.effect.*

import org.typelevel.otel4s.trace.Tracer

import munit.CatsEffectSuite

import ldbc.sql.Connection as SQLConnection

import ldbc.connector.exception.*

class TransactionTest extends CatsEffectSuite:
class TransactionTest extends FTestPlatform:

given Tracer[IO] = Tracer.noop[IO]

Expand Down