theory / pgtap

PostgreSQL Unit Testing Suite
https://pgtap.org
984 stars 92 forks source link

Update type-testing and function-testing functions to support short type names #294

Closed theory closed 1 year ago

theory commented 2 years ago

Enabled by the new _typename() function and by the _funkargs() function added in 2888bb8. This means that common aliases for standard types can be specified as, e.g., int and bool rather than integer and boolean.

Resolves #292.

Also removed unused file_sanity() shell function and replaced a couple of mental health terminology references.

theory commented 2 years ago

I could also imagine a more direct refactoring of these functions to use regtype and regtype[] instead of name and name[]. The only reason they're not regtype already is that it wasn't available in earlier versions of Postgres, versions which are no longer supported.