pgtap
pgtap copied to clipboard
Update type-testing and function-testing functions to support short type names
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.
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.