Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
Seq("-P:silencer:globalFilters=[zio.stacktracer.TracingImplicits.disableAutoTrace]")
}
)
.jvmSettings(mimaSettings(failOnProblem = false))
.jvmSettings(mimaSettings(failOnProblem = true))
.jsSettings(
jsSettings,
libraryDependencies ++= List(
Expand Down
2 changes: 1 addition & 1 deletion project/MimaSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.core.ProblemFilters._

object MimaSettings {
lazy val bincompatVersionToCompare = "2.0.10"
lazy val bincompatVersionToCompare = "2.0.15"

def mimaSettings(failOnProblem: Boolean) =
Seq(
Expand Down
10 changes: 6 additions & 4 deletions test/shared/src/main/scala/zio/test/TestArrow.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ case class TestResult(arrow: TestArrow[Any, Boolean]) { self =>
}

object TestResult {
def all(assert: TestResult, asserts: TestResult*): TestResult = asserts.foldLeft(assert)(_ && _)
def allSuccesses(assert: TestResult, asserts: TestResult*): TestResult = asserts.foldLeft(assert)(_ && _)

def any(assert: TestResult, asserts: TestResult*): TestResult = asserts.foldLeft(assert)(_ || _)
def anySuccesses(assert: TestResult, asserts: TestResult*): TestResult = asserts.foldLeft(assert)(_ || _)

implicit def liftTestResultToZIO[R, E](result: TestResult)(implicit trace: Trace): ZIO[R, E, TestResult] =
if (result.isSuccess)
Expand All @@ -55,9 +55,11 @@ object TestResult {

private[zio] final case class Exit(result: TestResult) extends Throwable

private def all(asserts: TestResult*): TestResult = asserts.reduce(_ && _)
@deprecated("Use allSuccesses", "2.0.16")
def all(asserts: TestResult*): TestResult = asserts.reduce(_ && _)

private def any(asserts: TestResult*): TestResult = asserts.reduce(_ || _)
@deprecated("Use anySuccesses", "2.0.16")
def any(asserts: TestResult*): TestResult = asserts.reduce(_ || _)
}

sealed trait TestArrow[-A, +B] { self =>
Expand Down