pgtap icon indicating copy to clipboard operation
pgtap copied to clipboard

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

Open theory opened this issue 2 years ago • 1 comments

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 avatar May 14 '22 20:05 theory

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.

theory avatar May 21 '22 21:05 theory