trait Checker[M[_]] extends CheckerBase[M]
Mix-in trait for specifications that enables checking of doobie Query
and
Update
values. Users must provide an effect type M
as well as a
Transactor[M]
and instances. As a convenience doobie provides
specializations for common effect types (see other types in this package).
// An example specification, taken from the examples project. class ExampleSpec extends AnyFunSuite with IOChecker { // The transactor to use for the tests. val transactor = Transactor.fromDriverManager[IO](...) // Now just mention the queries. Arguments are not used. test("findByNameAndAge") { check(MyDaoModule.findByNameAndAge(null, 0)) } test("allWoozles") { check(MyDaoModule.allWoozles) } }
- Self Type
- Checker[M] with Assertions
- Source
- Checker.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Checker
- CheckerBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def check[A](a: A)(implicit arg0: Analyzable[A]): Unit
- def checkOutput(u: Update0): Unit
- def checkOutput[A](u: Update[A])(implicit arg0: TypeName[A]): Unit
- def checkOutput[A, B](q: util.query.Query[A, B])(implicit arg0: TypeName[A], arg1: TypeName[B]): Unit
- def checkOutput[A](q: util.query.Query0[A])(implicit arg0: TypeName[A]): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def colors: Colors
- Definition Classes
- CheckerBase
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated