Hi,
is there a way to use throws_ok and its siblings inside tests (written as functions returning setof text) without having to pass queries as strings?
As far as I can see, using prepared statements inside functions doesn't work, because the context (i.e. local variables) will be lost.
As the docs say, passing queries as strings to test functions is quite a PITA, on the other hand writing my tests as functions returning setof text is very convenient, so I would like to stick to that.
Thanks for any help in advance and for maintaining pgTAP!
All the best