Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Clean up FunctionDefSpec #679

@sviezypan

Description

@sviezypan

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:

  • MySQL
  • PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions