zio-sql icon indicating copy to clipboard operation
zio-sql copied to clipboard

Clean up FunctionDefSpec

Open sviezypan opened this issue 3 years ago • 1 comments

Lots of tests in ZIO SQL were written in past, when some operators were not yet available.

In many places we could simplify, for example:

     ....
      val expected = ???
      val assertion = for {
        r <- testResult.runCollect
      } yield assert(r.head)(equalTo(expected))

      assertion.mapErrorCause(cause => Cause.stackless(cause.untraced))

to

assertZIO(testResult.runHead.some)(equalTo(expected))

This is to be done in two modules:

  • [x] MySQL
  • [ ] PostgreSQL

sviezypan avatar May 26 '22 13:05 sviezypan

I'll take this one

sarahotoole avatar May 26 '22 15:05 sarahotoole