monocle.law.discipline.function.AtTests.scala Maven / Gradle / Ivy
The newest version!
package monocle.law.discipline.function
import monocle.function.At._
import monocle.function._
import monocle.law.discipline.LensTests
import org.scalacheck.Arbitrary
import org.typelevel.discipline.Laws
import cats.Eq
object AtTests extends Laws {
def apply[S: Eq: Arbitrary, I: Arbitrary, A: Eq: Arbitrary](implicit
evAt: At[S, I, A],
arbAA: Arbitrary[A => A]
): RuleSet =
new SimpleRuleSet("At", LensTests[S, A, I](at(_)).props: _*)
}