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
- All
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: doobie.Update0): Unit
- Annotations
- @SuppressWarnings()
-
def
checkOutput[A](u: doobie.Update[A])(implicit arg0: TypeName[A]): Unit
- Annotations
- @SuppressWarnings()
-
def
checkOutput[A, B](q: util.query.Query[A, B])(implicit arg0: TypeName[A], arg1: TypeName[B]): Unit
- Annotations
- @SuppressWarnings()
-
def
checkOutput[A](q: util.query.Query0[A])(implicit arg0: TypeName[A]): Unit
- Annotations
- @SuppressWarnings()
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
colors: Colors
- Definition Classes
- CheckerBase
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- 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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )