zio-sql
zio-sql copied to clipboard
Clean up FunctionDefSpec
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
I'll take this one