package scalatest
Type Members
-
trait
AnalysisMatchers[F[_]] extends CheckerBase[F]
Provides matcher syntax for query checking:
Provides matcher syntax for query checking:
sql"select 1".query[Int] must typecheck
-
trait
Checker[M[_]] extends CheckerBase[M]
Mix-in trait for specifications that enables checking of doobie
Query
andUpdate
values.Mix-in trait for specifications that enables checking of doobie
Query
andUpdate
values. Users must provide an effect typeM
as well as aTransactor[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]( "org.postgresql.Driver", "jdbc:postgresql:world", "postgres", "" ) // Now just mention the queries. Arguments are not used. test("findByNameAndAge") { check(MyDaoModule.findByNameAndAge(null, 0)) } test("allWoozles") { check(MyDaoModule.allWoozles) } }
- trait IOAnalysisMatchers extends AnalysisMatchers[IO]
-
trait
IOChecker extends Checker[IO]
Implementation of Checker[IO]