Skip to content

Commit

Permalink
fix test duplication, separate to properly kernel module tofu-tf#779
Browse files Browse the repository at this point in the history
  • Loading branch information
Ssstlis committed Sep 27, 2021
1 parent 3307da9 commit bd24cca
Show file tree
Hide file tree
Showing 49 changed files with 135 additions and 1,775 deletions.
23 changes: 13 additions & 10 deletions modules/core/src/test/scala/tofu/IOSummonChecks.scala
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
package tofu

import cats.data.ReaderT
import cats.effect.{ContextShift, IO}
import cats.effect.{Concurrent, ContextShift, IO}

class IOSummonChecks(implicit cs: ContextShift[IO]) {
implicitly[Fire[IO[*]]]
implicitly[Start[IO[*]]]
implicitly[Race[IO[*]]]
implicitly[Errors[IO, Throwable]]
import scala.annotation.nowarn

implicitly[Fire[ReaderT[IO, Unit, *]]]
implicitly[Start[ReaderT[IO, Unit, *]]]
implicitly[Race[ReaderT[IO, Unit, *]]]
implicitly[Errors[ReaderT[IO, Unit, *], Throwable]]
@nowarn("cat=unused-params")
class IOSummonChecks {
def summonForIO(implicit cs: ContextShift[IO]) = {
implicitly[Start[IO[*]]]
implicitly[Start[ReaderT[IO, Unit, *]]]
}

def summonInstancesForConcurrent[F[_]: Concurrent] = {
implicitly[Start[F]]
implicitly[Start[ReaderT[F, Unit, *]]]
}
}
87 changes: 0 additions & 87 deletions modules/core/src/test/scala/tofu/RaiseSuite.scala

This file was deleted.

2 changes: 0 additions & 2 deletions modules/core/src/test/scala/tofu/StartSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ import tofu.syntax.monadic._
object StartSuite {
def summonInstancesForConcurrent[F[_]: Concurrent] = {
Fire[F]
Start[F]
Race[F]
}

def summonInstancesForIO(implicit cs: ContextShift[IO]) = {
Fire[IO]
Start[IO]
Race[IO]
MakeAgent[IO, IO]
MakeSerialAgent[IO, IO]
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/test/scala/tofu/syntax/UnliftSuite.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tofu
package tofu.syntax

import cats.effect.{Async, Concurrent, ConcurrentEffect, Effect}
import tofu.lift.Unlift
Expand Down
61 changes: 0 additions & 61 deletions modules/core3/src/test/scala/examples/DoMonadExamples.scala

This file was deleted.

15 changes: 0 additions & 15 deletions modules/core3/src/test/scala/tofu/ErrorsCompanion.scala

This file was deleted.

28 changes: 0 additions & 28 deletions modules/core3/src/test/scala/tofu/ErrorsSuite.scala

This file was deleted.

14 changes: 6 additions & 8 deletions modules/core3/src/test/scala/tofu/IOSummonChecks.scala
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package tofu

import cats.data.ReaderT
import cats.effect.{IO}
import cats.effect.{Concurrent, IO}

class IOSummonChecks {
implicitly[Fire[IO[*]]]
implicitly[Start[IO[*]]]
implicitly[Race[IO[*]]]
implicitly[Errors[IO, Throwable]]

implicitly[Fire[ReaderT[IO, Unit, *]]]
implicitly[Start[ReaderT[IO, Unit, *]]]
implicitly[Race[ReaderT[IO, Unit, *]]]
implicitly[Errors[ReaderT[IO, Unit, *], Throwable]]

def summonInstancesForConcurrent[F[_]: Concurrent] = {
implicitly[Start[F]]
implicitly[Start[ReaderT[F, Unit, *]]]
}
}
2 changes: 0 additions & 2 deletions modules/core3/src/test/scala/tofu/StartSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ import tofu.concurrent.{MakeAgent, MakeSerialAgent}
object StartSuite {
def summonInstancesForConcurrent[F[_]: Concurrent] = {
Fire[F]
Start[F]
Race[F]
MakeAgent[IO, IO]
}

def summonInstancesForIO = {
Fire[IO]
Start[IO]
Race[IO]
MakeAgent[IO, IO]
MakeSerialAgent[IO, IO]
Expand Down

This file was deleted.

87 changes: 0 additions & 87 deletions modules/core3/src/test/scala/tofu/examples/TofuRaiseExamples.scala

This file was deleted.

Loading

0 comments on commit bd24cca

Please sign in to comment.