-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests for binary compat that can't be tested by Mima (#2509)
* wip adding mima exception tests * uncomment bc breaking code * binary compat test working * fix 2.13 build * fix typo * keep fixing typo
- Loading branch information
1 parent
8c891ee
commit cc8919f
Showing
3 changed files
with
73 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package catsBC | ||
import cats.implicits._ | ||
import cats._, data._, cats.arrow._ | ||
|
||
object MimaExceptions { | ||
import cats.implicits._ | ||
|
||
def isBinaryCompatible = ( | ||
Monad[OptionT[List, ?]], | ||
cats.data.OptionT.catsDataTraverseForOptionT[List], | ||
cats.data.Kleisli.catsDataCommutativeArrowForKleisliId, | ||
cats.data.OptionT.catsDataMonoidKForOptionT[List], | ||
cats.data.OptionT.catsDataMonoidForOptionT[List, Int], | ||
cats.data.Kleisli.catsDataMonadForKleisliId[Int], | ||
cats.data.Kleisli.catsDataCommutativeArrowForKleisli[Option], | ||
cats.data.Kleisli.catsDataCommutativeFlatMapForKleisli[Option, Int], | ||
cats.data.IRWST.catsDataStrongForIRWST[List, Int, Int, Int], | ||
cats.data.OptionT.catsDataMonadErrorMonadForOptionT[List] | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package catsBC | ||
|
||
import org.scalatest.FunSuite | ||
|
||
class MimaExceptionsTest extends FunSuite { | ||
test("is binary compatible") { | ||
MimaExceptions.isBinaryCompatible | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters