From 9a85c962df90b6c8ea3c3fdaf2e3e1fcc0d5da29 Mon Sep 17 00:00:00 2001 From: Marc Cousin Date: Sat, 3 Feb 2018 11:29:19 +0100 Subject: [PATCH 1/2] add function_checksum_is --- sql/pgtap.sql.in | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/sql/pgtap.sql.in b/sql/pgtap.sql.in index 784a44c5b..4f0832b24 100644 --- a/sql/pgtap.sql.in +++ b/sql/pgtap.sql.in @@ -2644,6 +2644,74 @@ RETURNS TEXT AS $$ SELECT ok( NOT _got_func($1), 'Function ' || quote_ident($1) || '() should not exist' ); $$ LANGUAGE sql; +-- function_checksum_is( function, md5, description ) +-- We don't have the prototype, so just check the first one found +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, text, text ) +RETURNS TEXT AS $$ + SELECT is(md5( p.prosrc), $2, $3) + FROM tap_funky t + JOIN pg_proc p ON (p.oid=t.oid) + WHERE t.name=$1 + AND pg_function_is_visible(t.oid) LIMIT 1; +$$ LANGUAGE sql; + +-- function_checksum_is( schema, function, md5, description ) +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, NAME, text, text ) +RETURNS TEXT AS $$ + SELECT is(md5( p.prosrc), $3, $4) + FROM tap_funky t + JOIN pg_proc p ON (p.oid=t.oid) + WHERE t.name = $2 + AND t.schema=$1 LIMIT 1; +$$ LANGUAGE sql; + +-- function_checksum_is( function, args, md5, description ) + +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, NAME[], text, text ) +RETURNS TEXT AS $$ + SELECT is(md5( p.prosrc), $3, $4) + FROM tap_funky t + JOIN pg_proc p ON (p.oid=t.oid) + WHERE t.name = $1 + AND pg_function_is_visible(t.oid) + AND t.args=array_to_string($2,','); +$$ LANGUAGE sql; + +-- function_checksum_is( schema, function, args, md5, description ) +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, NAME, NAME[], text, text ) +RETURNS TEXT AS $$ + SELECT is(md5( p.prosrc), $4, $5) + FROM tap_funky t + JOIN pg_proc p ON (p.oid=t.oid) + WHERE t.name = $2 + AND t.schema=$1 + AND t.args=array_to_string($3,','); +$$ LANGUAGE sql; + +-- function_checksum_is( function, md5 ) +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, text) +RETURNS TEXT AS $$ + SELECT function_checksum_is($1,$2,'Function ' || quote_ident($1) || ' Checksum'); +$$ LANGUAGE sql; + +-- function_checksum_is( schema, function, md5) +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, NAME, text) +RETURNS TEXT AS $$ + SELECT function_checksum_is($1,$2,$3,'Function ' || quote_ident($1) || '.' || quote_ident($2) || ' Checksum'); +$$ LANGUAGE sql; + +-- function_checksum_is( function, args, md5) +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, NAME[], text) +RETURNS TEXT AS $$ + SELECT function_checksum_is($1,$2,$3,'Function ' || quote_ident($1) || ' Checksum'); +$$ LANGUAGE sql; + +-- function_checksum_is( schema, function, args, md5) +CREATE OR REPLACE FUNCTION function_checksum_is( NAME, NAME, NAME[], text) +RETURNS TEXT AS $$ + SELECT function_checksum_is($1,$2,$3,$4,'Function ' || quote_ident($1) || '.' || quote_ident($2) || ' Checksum'); +$$ LANGUAGE sql; + CREATE OR REPLACE FUNCTION _pg_sv_type_array( OID[] ) RETURNS NAME[] AS $$ SELECT ARRAY( From 29dea235e286849039ef526c099efb9101f2be8a Mon Sep 17 00:00:00 2001 From: Marc Cousin Date: Tue, 27 Feb 2018 17:32:18 +0100 Subject: [PATCH 2/2] Add tests --- test/expected/functap.out | 1112 +++++++++++++++++++------------------ test/sql/functap.sql | 68 ++- 2 files changed, 631 insertions(+), 549 deletions(-) diff --git a/test/expected/functap.out b/test/expected/functap.out index 2b6704c2e..6df825edb 100644 --- a/test/expected/functap.out +++ b/test/expected/functap.out @@ -1,5 +1,5 @@ \unset ECHO -1..628 +1..644 ok 1 - simple function should pass ok 2 - simple function should have the proper description ok 3 - simple function should have the proper diagnostics @@ -81,550 +81,566 @@ ok 78 - custom array function should have the proper diagnostics ok 79 - custom numeric function should fail ok 80 - custom numeric function should have the proper description ok 81 - custom numeric function should have the proper diagnostics -ok 82 - can(schema) with desc should pass -ok 83 - can(schema) with desc should have the proper description -ok 84 - can(schema) with desc should have the proper diagnostics -ok 85 - can(schema) should pass -ok 86 - can(schema) should have the proper description -ok 87 - can(schema) should have the proper diagnostics -ok 88 - fail can(schema) with desc should fail -ok 89 - fail can(schema) with desc should have the proper description -ok 90 - fail can(schema) with desc should have the proper diagnostics -ok 91 - fail can(someschema) with desc should fail -ok 92 - fail can(someschema) with desc should have the proper description -ok 93 - fail can(someschema) with desc should have the proper diagnostics -ok 94 - can() with desc should pass -ok 95 - can() with desc should have the proper description -ok 96 - can() with desc should have the proper diagnostics -ok 97 - can(schema) should pass -ok 98 - can(schema) should have the proper description -ok 99 - can(schema) should have the proper diagnostics -ok 100 - fail can() with desc should fail -ok 101 - fail can() with desc should have the proper description -ok 102 - fail can() with desc should have the proper diagnostics -ok 103 - function_lang_is(schema, func, 0 args, sql, desc) should pass -ok 104 - function_lang_is(schema, func, 0 args, sql, desc) should have the proper description -ok 105 - function_lang_is(schema, func, 0 args, sql, desc) should have the proper diagnostics -ok 106 - function_lang_is(schema, func, 0 args, sql) should pass -ok 107 - function_lang_is(schema, func, 0 args, sql) should have the proper description -ok 108 - function_lang_is(schema, func, 0 args, sql) should have the proper diagnostics -ok 109 - function_lang_is(schema, func, args, plpgsql, desc) should pass -ok 110 - function_lang_is(schema, func, args, plpgsql, desc) should have the proper description -ok 111 - function_lang_is(schema, func, args, plpgsql, desc) should have the proper diagnostics -ok 112 - function_lang_is(schema, func, args, plpgsql) should pass -ok 113 - function_lang_is(schema, func, args, plpgsql) should have the proper description -ok 114 - function_lang_is(schema, func, args, plpgsql) should have the proper diagnostics -ok 115 - function_lang_is(schema, func, 0 args, perl, desc) should fail -ok 116 - function_lang_is(schema, func, 0 args, perl, desc) should have the proper description -ok 117 - function_lang_is(schema, func, 0 args, perl, desc) should have the proper diagnostics -ok 118 - function_lang_is(schema, non-func, 0 args, sql, desc) should fail -ok 119 - function_lang_is(schema, non-func, 0 args, sql, desc) should have the proper description -ok 120 - function_lang_is(schema, non-func, 0 args, sql, desc) should have the proper diagnostics -ok 121 - function_lang_is(schema, func, args, plpgsql) should fail -ok 122 - function_lang_is(schema, func, args, plpgsql) should have the proper description -ok 123 - function_lang_is(schema, func, args, plpgsql) should have the proper diagnostics -ok 124 - function_lang_is(schema, func, sql, desc) should pass -ok 125 - function_lang_is(schema, func, sql, desc) should have the proper description -ok 126 - function_lang_is(schema, func, sql, desc) should have the proper diagnostics -ok 127 - function_lang_is(schema, func, sql) should pass -ok 128 - function_lang_is(schema, func, sql) should have the proper description -ok 129 - function_lang_is(schema, func, sql) should have the proper diagnostics -ok 130 - function_lang_is(schema, func, perl, desc) should fail -ok 131 - function_lang_is(schema, func, perl, desc) should have the proper description -ok 132 - function_lang_is(schema, func, perl, desc) should have the proper diagnostics -ok 133 - function_lang_is(schema, non-func, sql, desc) should fail -ok 134 - function_lang_is(schema, non-func, sql, desc) should have the proper description -ok 135 - function_lang_is(schema, non-func, sql, desc) should have the proper diagnostics -ok 136 - function_lang_is(func, 0 args, sql, desc) should pass -ok 137 - function_lang_is(func, 0 args, sql, desc) should have the proper description -ok 138 - function_lang_is(func, 0 args, sql, desc) should have the proper diagnostics -ok 139 - function_lang_is(func, 0 args, sql) should pass -ok 140 - function_lang_is(func, 0 args, sql) should have the proper description -ok 141 - function_lang_is(func, 0 args, sql) should have the proper diagnostics -ok 142 - function_lang_is(func, args, plpgsql, desc) should pass -ok 143 - function_lang_is(func, args, plpgsql, desc) should have the proper description -ok 144 - function_lang_is(func, args, plpgsql, desc) should have the proper diagnostics -ok 145 - function_lang_is(func, args, plpgsql) should pass -ok 146 - function_lang_is(func, args, plpgsql) should have the proper description -ok 147 - function_lang_is(func, args, plpgsql) should have the proper diagnostics -ok 148 - function_lang_is(func, 0 args, perl, desc) should fail -ok 149 - function_lang_is(func, 0 args, perl, desc) should have the proper description -ok 150 - function_lang_is(func, 0 args, perl, desc) should have the proper diagnostics -ok 151 - function_lang_is(non-func, 0 args, sql, desc) should fail -ok 152 - function_lang_is(non-func, 0 args, sql, desc) should have the proper description -ok 153 - function_lang_is(non-func, 0 args, sql, desc) should have the proper diagnostics -ok 154 - function_lang_is(func, args, plpgsql) should fail -ok 155 - function_lang_is(func, args, plpgsql) should have the proper description -ok 156 - function_lang_is(func, args, plpgsql) should have the proper diagnostics -ok 157 - function_lang_is(func, sql, desc) should pass -ok 158 - function_lang_is(func, sql, desc) should have the proper description -ok 159 - function_lang_is(func, sql, desc) should have the proper diagnostics -ok 160 - function_lang_is(func, sql) should pass -ok 161 - function_lang_is(func, sql) should have the proper description -ok 162 - function_lang_is(func, sql) should have the proper diagnostics -ok 163 - function_lang_is(func, perl, desc) should fail -ok 164 - function_lang_is(func, perl, desc) should have the proper description -ok 165 - function_lang_is(func, perl, desc) should have the proper diagnostics -ok 166 - function_lang_is(non-func, sql, desc) should fail -ok 167 - function_lang_is(non-func, sql, desc) should have the proper description -ok 168 - function_lang_is(non-func, sql, desc) should have the proper diagnostics -ok 169 - function_returns(schema, func, 0 args, bool, desc) should pass -ok 170 - function_returns(schema, func, 0 args, bool, desc) should have the proper description -ok 171 - function_returns(schema, func, 0 args, bool, desc) should have the proper diagnostics -ok 172 - function_returns(schema, func, 0 args, bool) should pass -ok 173 - function_returns(schema, func, 0 args, bool) should have the proper description -ok 174 - function_returns(schema, func, 0 args, bool) should have the proper diagnostics -ok 175 - function_returns(schema, func, args, bool, false) should pass -ok 176 - function_returns(schema, func, args, bool, false) should have the proper description -ok 177 - function_returns(schema, func, args, bool, false) should have the proper diagnostics -ok 178 - function_returns(schema, func, args, bool) should pass -ok 179 - function_returns(schema, func, args, bool) should have the proper description -ok 180 - function_returns(schema, func, args, bool) should have the proper diagnostics -ok 181 - function_returns(schema, func, 0 args, setof bool, desc) should pass -ok 182 - function_returns(schema, func, 0 args, setof bool, desc) should have the proper description -ok 183 - function_returns(schema, func, 0 args, setof bool, desc) should have the proper diagnostics -ok 184 - function_returns(schema, func, 0 args, setof bool) should pass -ok 185 - function_returns(schema, func, 0 args, setof bool) should have the proper description -ok 186 - function_returns(schema, func, 0 args, setof bool) should have the proper diagnostics -ok 187 - function_returns(schema, func, bool, desc) should pass -ok 188 - function_returns(schema, func, bool, desc) should have the proper description -ok 189 - function_returns(schema, func, bool, desc) should have the proper diagnostics -ok 190 - function_returns(schema, func, bool) should pass -ok 191 - function_returns(schema, func, bool) should have the proper description -ok 192 - function_returns(schema, func, bool) should have the proper diagnostics -ok 193 - function_returns(schema, other func, bool, false) should pass -ok 194 - function_returns(schema, other func, bool, false) should have the proper description -ok 195 - function_returns(schema, other func, bool, false) should have the proper diagnostics -ok 196 - function_returns(schema, other func, bool) should pass -ok 197 - function_returns(schema, other func, bool) should have the proper description -ok 198 - function_returns(schema, other func, bool) should have the proper diagnostics -ok 199 - function_returns(schema, func, setof bool, desc) should pass -ok 200 - function_returns(schema, func, setof bool, desc) should have the proper description -ok 201 - function_returns(schema, func, setof bool, desc) should have the proper diagnostics -ok 202 - function_returns(schema, func, setof bool) should pass -ok 203 - function_returns(schema, func, setof bool) should have the proper description -ok 204 - function_returns(schema, func, setof bool) should have the proper diagnostics -ok 205 - function_returns(func, 0 args, bool, desc) should pass -ok 206 - function_returns(func, 0 args, bool, desc) should have the proper description -ok 207 - function_returns(func, 0 args, bool, desc) should have the proper diagnostics -ok 208 - function_returns(func, 0 args, bool) should pass -ok 209 - function_returns(func, 0 args, bool) should have the proper description -ok 210 - function_returns(func, 0 args, bool) should have the proper diagnostics -ok 211 - function_returns(func, args, bool, false) should pass -ok 212 - function_returns(func, args, bool, false) should have the proper description -ok 213 - function_returns(func, args, bool, false) should have the proper diagnostics -ok 214 - function_returns(func, args, bool) should pass -ok 215 - function_returns(func, args, bool) should have the proper description -ok 216 - function_returns(func, args, bool) should have the proper diagnostics -ok 217 - function_returns(func, 0 args, setof bool, desc) should pass -ok 218 - function_returns(func, 0 args, setof bool, desc) should have the proper description -ok 219 - function_returns(func, 0 args, setof bool, desc) should have the proper diagnostics -ok 220 - function_returns(func, 0 args, setof bool) should pass -ok 221 - function_returns(func, 0 args, setof bool) should have the proper description -ok 222 - function_returns(func, 0 args, setof bool) should have the proper diagnostics -ok 223 - function_returns(func, bool, desc) should pass -ok 224 - function_returns(func, bool, desc) should have the proper description -ok 225 - function_returns(func, bool, desc) should have the proper diagnostics -ok 226 - function_returns(func, bool) should pass -ok 227 - function_returns(func, bool) should have the proper description -ok 228 - function_returns(func, bool) should have the proper diagnostics -ok 229 - function_returns(other func, bool, false) should pass -ok 230 - function_returns(other func, bool, false) should have the proper description -ok 231 - function_returns(other func, bool, false) should have the proper diagnostics -ok 232 - function_returns(other func, bool) should pass -ok 233 - function_returns(other func, bool) should have the proper description -ok 234 - function_returns(other func, bool) should have the proper diagnostics -ok 235 - function_returns(func, setof bool, desc) should pass -ok 236 - function_returns(func, setof bool, desc) should have the proper description -ok 237 - function_returns(func, setof bool, desc) should have the proper diagnostics -ok 238 - function_returns(func, setof bool) should pass -ok 239 - function_returns(func, setof bool) should have the proper description -ok 240 - function_returns(func, setof bool) should have the proper diagnostics -ok 241 - is_definer(schema, func, 0 args, desc) should pass -ok 242 - is_definer(schema, func, 0 args, desc) should have the proper description -ok 243 - is_definer(schema, func, 0 args, desc) should have the proper diagnostics -ok 244 - isnt_definer(schema, func, 0 args, desc) should fail -ok 245 - isnt_definer(schema, func, 0 args, desc) should have the proper description -ok 246 - isnt_definer(schema, func, 0 args, desc) should have the proper diagnostics -ok 247 - is_definer(schema, func, 0 args) should pass -ok 248 - is_definer(schema, func, 0 args) should have the proper description -ok 249 - is_definer(schema, func, 0 args) should have the proper diagnostics -ok 250 - isnt_definer(schema, func, 0 args) should fail -ok 251 - isnt_definer(schema, func, 0 args) should have the proper description -ok 252 - isnt_definer(schema, func, 0 args) should have the proper diagnostics -ok 253 - is_definer(schema, func, args, desc) should fail -ok 254 - is_definer(schema, func, args, desc) should have the proper description -ok 255 - is_definer(schema, func, args, desc) should have the proper diagnostics -ok 256 - isnt_definer(schema, func, args, desc) should pass -ok 257 - isnt_definer(schema, func, args, desc) should have the proper description -ok 258 - isnt_definer(schema, func, args, desc) should have the proper diagnostics -ok 259 - is_definer(schema, func, args) should fail -ok 260 - is_definer(schema, func, args) should have the proper description -ok 261 - is_definer(schema, func, args) should have the proper diagnostics -ok 262 - isnt_definer(schema, func, args) should pass -ok 263 - isnt_definer(schema, func, args) should have the proper description -ok 264 - isnt_definer(schema, func, args) should have the proper diagnostics -ok 265 - is_definer(schema, func, desc) should pass -ok 266 - is_definer(schema, func, desc) should have the proper description -ok 267 - is_definer(schema, func, desc) should have the proper diagnostics -ok 268 - isnt_definer(schema, func, desc) should fail -ok 269 - isnt_definer(schema, func, desc) should have the proper description -ok 270 - isnt_definer(schema, func, desc) should have the proper diagnostics -ok 271 - is_definer(schema, func) should pass -ok 272 - is_definer(schema, func) should have the proper description -ok 273 - is_definer(schema, func) should have the proper diagnostics -ok 274 - isnt_definer(schema, func) should fail -ok 275 - isnt_definer(schema, func) should have the proper description -ok 276 - isnt_definer(schema, func) should have the proper diagnostics -ok 277 - is_definer(schema, func, 0 args, desc) should pass -ok 278 - is_definer(schema, func, 0 args, desc) should have the proper description -ok 279 - is_definer(schema, func, 0 args, desc) should have the proper diagnostics -ok 280 - isnt_definer(schema, func, 0 args, desc) should fail -ok 281 - isnt_definer(schema, func, 0 args, desc) should have the proper description -ok 282 - isnt_definer(schema, func, 0 args, desc) should have the proper diagnostics -ok 283 - is_definer(schema, func, 0 args) should pass -ok 284 - is_definer(schema, func, 0 args) should have the proper description -ok 285 - is_definer(schema, func, 0 args) should have the proper diagnostics -ok 286 - isnt_definer(schema, func, 0 args) should fail -ok 287 - isnt_definer(schema, func, 0 args) should have the proper description -ok 288 - isnt_definer(schema, func, 0 args) should have the proper diagnostics -ok 289 - is_definer(schema, func, args, desc) should fail -ok 290 - is_definer(schema, func, args, desc) should have the proper description -ok 291 - is_definer(schema, func, args, desc) should have the proper diagnostics -ok 292 - isnt_definer(schema, func, args, desc) should pass -ok 293 - isnt_definer(schema, func, args, desc) should have the proper description -ok 294 - isnt_definer(schema, func, args, desc) should have the proper diagnostics -ok 295 - is_definer(schema, func, args) should fail -ok 296 - is_definer(schema, func, args) should have the proper description -ok 297 - is_definer(schema, func, args) should have the proper diagnostics -ok 298 - isnt_definer(schema, func, args) should pass -ok 299 - isnt_definer(schema, func, args) should have the proper description -ok 300 - isnt_definer(schema, func, args) should have the proper diagnostics -ok 301 - is_definer(schema, func, desc) should pass -ok 302 - is_definer(schema, func, desc) should have the proper description -ok 303 - is_definer(schema, func, desc) should have the proper diagnostics -ok 304 - isnt_definer(schema, func, desc) should fail -ok 305 - isnt_definer(schema, func, desc) should have the proper description -ok 306 - isnt_definer(schema, func, desc) should have the proper diagnostics -ok 307 - is_definer(schema, func) should pass -ok 308 - is_definer(schema, func) should have the proper description -ok 309 - is_definer(schema, func) should have the proper diagnostics -ok 310 - isnt_definer(schema, func) should fail -ok 311 - isnt_definer(schema, func) should have the proper description -ok 312 - isnt_definer(schema, func) should have the proper diagnostics -ok 313 - is_definer(func, 0 args, desc) should pass -ok 314 - is_definer(func, 0 args, desc) should have the proper description -ok 315 - is_definer(func, 0 args, desc) should have the proper diagnostics -ok 316 - isnt_definer(func, 0 args, desc) should fail -ok 317 - isnt_definer(func, 0 args, desc) should have the proper description -ok 318 - isnt_definer(func, 0 args, desc) should have the proper diagnostics -ok 319 - is_definer(func, 0 args) should pass -ok 320 - is_definer(func, 0 args) should have the proper description -ok 321 - is_definer(func, 0 args) should have the proper diagnostics -ok 322 - isnt_definer(func, 0 args) should fail -ok 323 - isnt_definer(func, 0 args) should have the proper description -ok 324 - isnt_definer(func, 0 args) should have the proper diagnostics -ok 325 - is_definer(func, args, desc) should fail -ok 326 - is_definer(func, args, desc) should have the proper description -ok 327 - is_definer(func, args, desc) should have the proper diagnostics -ok 328 - isnt_definer(func, args, desc) should pass -ok 329 - isnt_definer(func, args, desc) should have the proper description -ok 330 - isnt_definer(func, args, desc) should have the proper diagnostics -ok 331 - is_definer(func, args) should fail -ok 332 - is_definer(func, args) should have the proper description -ok 333 - is_definer(func, args) should have the proper diagnostics -ok 334 - isnt_definer(func, args) should pass -ok 335 - isnt_definer(func, args) should have the proper description -ok 336 - isnt_definer(func, args) should have the proper diagnostics -ok 337 - is_definer(func, desc) should pass -ok 338 - is_definer(func, desc) should have the proper description -ok 339 - is_definer(func, desc) should have the proper diagnostics -ok 340 - isnt_definer(func, desc) should fail -ok 341 - isnt_definer(func, desc) should have the proper description -ok 342 - isnt_definer(func, desc) should have the proper diagnostics -ok 343 - is_definer(func) should pass -ok 344 - is_definer(func) should have the proper description -ok 345 - is_definer(func) should have the proper diagnostics -ok 346 - isnt_definer(func) should fail -ok 347 - isnt_definer(func) should have the proper description -ok 348 - isnt_definer(func) should have the proper diagnostics -ok 349 - is_aggregate(schema, func, arg, desc) should pass -ok 350 - is_aggregate(schema, func, arg, desc) should have the proper description -ok 351 - is_aggregate(schema, func, arg, desc) should have the proper diagnostics -ok 352 - isnt_aggregate(schema, func, arg, desc) should fail -ok 353 - isnt_aggregate(schema, func, arg, desc) should have the proper description -ok 354 - isnt_aggregate(schema, func, arg, desc) should have the proper diagnostics -ok 355 - is_aggregate(schema, func, arg) should pass -ok 356 - is_aggregate(schema, func, arg) should have the proper description -ok 357 - is_aggregate(schema, func, arg) should have the proper diagnostics -ok 358 - isnt_aggregate(schema, func, arg) should fail -ok 359 - isnt_aggregate(schema, func, arg) should have the proper description -ok 360 - isnt_aggregate(schema, func, arg) should have the proper diagnostics -ok 361 - is_aggregate(schema, func, args, desc) should fail -ok 362 - is_aggregate(schema, func, args, desc) should have the proper description -ok 363 - is_aggregate(schema, func, args, desc) should have the proper diagnostics -ok 364 - isnt_aggregate(schema, func, args, desc) should pass -ok 365 - isnt_aggregate(schema, func, args, desc) should have the proper description -ok 366 - isnt_aggregate(schema, func, args, desc) should have the proper diagnostics -ok 367 - is_aggregate(schema, func, args) should fail -ok 368 - is_aggregate(schema, func, args) should have the proper description -ok 369 - is_aggregate(schema, func, args) should have the proper diagnostics -ok 370 - isnt_aggregate(schema, func, args) should pass -ok 371 - isnt_aggregate(schema, func, args) should have the proper description -ok 372 - isnt_aggregate(schema, func, args) should have the proper diagnostics -ok 373 - is_aggregate(schema, func, desc) should pass -ok 374 - is_aggregate(schema, func, desc) should have the proper description -ok 375 - is_aggregate(schema, func, desc) should have the proper diagnostics -ok 376 - isnt_aggregate(schema, func, desc) should fail -ok 377 - isnt_aggregate(schema, func, desc) should have the proper description -ok 378 - isnt_aggregate(schema, func, desc) should have the proper diagnostics -ok 379 - is_aggregate(schema, func) should pass -ok 380 - is_aggregate(schema, func) should have the proper description -ok 381 - is_aggregate(schema, func) should have the proper diagnostics -ok 382 - isnt_aggregate(schema, func) should fail -ok 383 - isnt_aggregate(schema, func) should have the proper description -ok 384 - isnt_aggregate(schema, func) should have the proper diagnostics -ok 385 - is_aggregate(schema, func, arg, desc) should pass -ok 386 - is_aggregate(schema, func, arg, desc) should have the proper description -ok 387 - is_aggregate(schema, func, arg, desc) should have the proper diagnostics -ok 388 - isnt_aggregate(schema, func, arg, desc) should fail -ok 389 - isnt_aggregate(schema, func, arg, desc) should have the proper description -ok 390 - isnt_aggregate(schema, func, arg, desc) should have the proper diagnostics -ok 391 - is_aggregate(schema, func, arg) should pass -ok 392 - is_aggregate(schema, func, arg) should have the proper description -ok 393 - is_aggregate(schema, func, arg) should have the proper diagnostics -ok 394 - isnt_aggregate(schema, func, arg) should fail -ok 395 - isnt_aggregate(schema, func, arg) should have the proper description -ok 396 - isnt_aggregate(schema, func, arg) should have the proper diagnostics -ok 397 - is_aggregate(schema, func, args, desc) should fail -ok 398 - is_aggregate(schema, func, args, desc) should have the proper description -ok 399 - is_aggregate(schema, func, args, desc) should have the proper diagnostics -ok 400 - isnt_aggregate(schema, func, args, desc) should pass -ok 401 - isnt_aggregate(schema, func, args, desc) should have the proper description -ok 402 - isnt_aggregate(schema, func, args, desc) should have the proper diagnostics -ok 403 - is_aggregate(schema, func, args) should fail -ok 404 - is_aggregate(schema, func, args) should have the proper description -ok 405 - is_aggregate(schema, func, args) should have the proper diagnostics -ok 406 - isnt_aggregate(schema, func, args) should pass -ok 407 - isnt_aggregate(schema, func, args) should have the proper description -ok 408 - isnt_aggregate(schema, func, args) should have the proper diagnostics -ok 409 - is_aggregate(schema, func, desc) should pass -ok 410 - is_aggregate(schema, func, desc) should have the proper description -ok 411 - is_aggregate(schema, func, desc) should have the proper diagnostics -ok 412 - isnt_aggregate(schema, func, desc) should fail -ok 413 - isnt_aggregate(schema, func, desc) should have the proper description -ok 414 - isnt_aggregate(schema, func, desc) should have the proper diagnostics -ok 415 - is_aggregate(schema, func) should pass -ok 416 - is_aggregate(schema, func) should have the proper description -ok 417 - is_aggregate(schema, func) should have the proper diagnostics -ok 418 - isnt_aggregate(schema, func) should fail -ok 419 - isnt_aggregate(schema, func) should have the proper description -ok 420 - isnt_aggregate(schema, func) should have the proper diagnostics -ok 421 - is_aggregate(func, arg, desc) should pass -ok 422 - is_aggregate(func, arg, desc) should have the proper description -ok 423 - is_aggregate(func, arg, desc) should have the proper diagnostics -ok 424 - isnt_aggregate(func, arg, desc) should fail -ok 425 - isnt_aggregate(func, arg, desc) should have the proper description -ok 426 - isnt_aggregate(func, arg, desc) should have the proper diagnostics -ok 427 - is_aggregate(func, arg) should pass -ok 428 - is_aggregate(func, arg) should have the proper description -ok 429 - is_aggregate(func, arg) should have the proper diagnostics -ok 430 - isnt_aggregate(func, arg) should fail -ok 431 - isnt_aggregate(func, arg) should have the proper description -ok 432 - isnt_aggregate(func, arg) should have the proper diagnostics -ok 433 - is_aggregate(func, args, desc) should fail -ok 434 - is_aggregate(func, args, desc) should have the proper description -ok 435 - is_aggregate(func, args, desc) should have the proper diagnostics -ok 436 - isnt_aggregate(func, args, desc) should pass -ok 437 - isnt_aggregate(func, args, desc) should have the proper description -ok 438 - isnt_aggregate(func, args, desc) should have the proper diagnostics -ok 439 - is_aggregate(func, args) should fail -ok 440 - is_aggregate(func, args) should have the proper description -ok 441 - is_aggregate(func, args) should have the proper diagnostics -ok 442 - isnt_aggregate(func, args) should pass -ok 443 - isnt_aggregate(func, args) should have the proper description -ok 444 - isnt_aggregate(func, args) should have the proper diagnostics -ok 445 - is_aggregate(func, desc) should pass -ok 446 - is_aggregate(func, desc) should have the proper description -ok 447 - is_aggregate(func, desc) should have the proper diagnostics -ok 448 - isnt_aggregate(func, desc) should fail -ok 449 - isnt_aggregate(func, desc) should have the proper description -ok 450 - isnt_aggregate(func, desc) should have the proper diagnostics -ok 451 - is_aggregate(func) should pass -ok 452 - is_aggregate(func) should have the proper description -ok 453 - is_aggregate(func) should have the proper diagnostics -ok 454 - isnt_aggregate(func) should fail -ok 455 - isnt_aggregate(func) should have the proper description -ok 456 - isnt_aggregate(func) should have the proper diagnostics -ok 457 - is_strict(schema, func, 0 args, desc) should pass -ok 458 - is_strict(schema, func, 0 args, desc) should have the proper description -ok 459 - is_strict(schema, func, 0 args, desc) should have the proper diagnostics -ok 460 - isnt_strict(schema, func, 0 args, desc) should fail -ok 461 - isnt_strict(schema, func, 0 args, desc) should have the proper description -ok 462 - isnt_strict(schema, func, 0 args, desc) should have the proper diagnostics -ok 463 - is_strict(schema, func, 0 args) should pass -ok 464 - is_strict(schema, func, 0 args) should have the proper description -ok 465 - is_strict(schema, func, 0 args) should have the proper diagnostics -ok 466 - isnt_strict(schema, func, 0 args) should fail -ok 467 - isnt_strict(schema, func, 0 args) should have the proper description -ok 468 - isnt_strict(schema, func, 0 args) should have the proper diagnostics -ok 469 - is_strict(schema, func, args, desc) should fail -ok 470 - is_strict(schema, func, args, desc) should have the proper description -ok 471 - is_strict(schema, func, args, desc) should have the proper diagnostics -ok 472 - is_strict(schema, func, args, desc) should pass -ok 473 - is_strict(schema, func, args, desc) should have the proper description -ok 474 - is_strict(schema, func, args, desc) should have the proper diagnostics -ok 475 - is_strict(schema, func, args) should fail -ok 476 - is_strict(schema, func, args) should have the proper description -ok 477 - is_strict(schema, func, args) should have the proper diagnostics -ok 478 - is_strict(schema, func, args) should pass -ok 479 - is_strict(schema, func, args) should have the proper description -ok 480 - is_strict(schema, func, args) should have the proper diagnostics -ok 481 - is_strict(schema, func, desc) should pass -ok 482 - is_strict(schema, func, desc) should have the proper description -ok 483 - is_strict(schema, func, desc) should have the proper diagnostics -ok 484 - isnt_strict(schema, func, desc) should fail -ok 485 - isnt_strict(schema, func, desc) should have the proper description -ok 486 - isnt_strict(schema, func, desc) should have the proper diagnostics -ok 487 - is_strict(schema, func) should pass -ok 488 - is_strict(schema, func) should have the proper description -ok 489 - is_strict(schema, func) should have the proper diagnostics -ok 490 - isnt_strict(schema, func) should fail -ok 491 - isnt_strict(schema, func) should have the proper description -ok 492 - isnt_strict(schema, func) should have the proper diagnostics -ok 493 - is_strict(schema, func, 0 args, desc) should pass -ok 494 - is_strict(schema, func, 0 args, desc) should have the proper description -ok 495 - is_strict(schema, func, 0 args, desc) should have the proper diagnostics -ok 496 - isnt_strict(schema, func, 0 args, desc) should fail -ok 497 - isnt_strict(schema, func, 0 args, desc) should have the proper description -ok 498 - isnt_strict(schema, func, 0 args, desc) should have the proper diagnostics -ok 499 - is_strict(schema, func, 0 args) should pass -ok 500 - is_strict(schema, func, 0 args) should have the proper description -ok 501 - is_strict(schema, func, 0 args) should have the proper diagnostics -ok 502 - isnt_strict(schema, func, 0 args) should fail -ok 503 - isnt_strict(schema, func, 0 args) should have the proper description -ok 504 - isnt_strict(schema, func, 0 args) should have the proper diagnostics -ok 505 - is_strict(schema, func, args, desc) should fail -ok 506 - is_strict(schema, func, args, desc) should have the proper description -ok 507 - is_strict(schema, func, args, desc) should have the proper diagnostics -ok 508 - isnt_strict(schema, func, args, desc) should pass -ok 509 - isnt_strict(schema, func, args, desc) should have the proper description -ok 510 - isnt_strict(schema, func, args, desc) should have the proper diagnostics -ok 511 - is_strict(schema, func, args) should fail -ok 512 - is_strict(schema, func, args) should have the proper description -ok 513 - is_strict(schema, func, args) should have the proper diagnostics -ok 514 - isnt_strict(schema, func, args) should pass -ok 515 - isnt_strict(schema, func, args) should have the proper description -ok 516 - isnt_strict(schema, func, args) should have the proper diagnostics -ok 517 - is_strict(schema, func, desc) should pass -ok 518 - is_strict(schema, func, desc) should have the proper description -ok 519 - is_strict(schema, func, desc) should have the proper diagnostics -ok 520 - isnt_strict(schema, func, desc) should fail -ok 521 - isnt_strict(schema, func, desc) should have the proper description -ok 522 - isnt_strict(schema, func, desc) should have the proper diagnostics -ok 523 - is_strict(schema, func) should pass -ok 524 - is_strict(schema, func) should have the proper description -ok 525 - is_strict(schema, func) should have the proper diagnostics -ok 526 - isnt_strict(schema, func) should fail -ok 527 - isnt_strict(schema, func) should have the proper description -ok 528 - isnt_strict(schema, func) should have the proper diagnostics -ok 529 - is_strict(func, 0 args, desc) should pass -ok 530 - is_strict(func, 0 args, desc) should have the proper description -ok 531 - is_strict(func, 0 args, desc) should have the proper diagnostics -ok 532 - isnt_strict(func, 0 args, desc) should fail -ok 533 - isnt_strict(func, 0 args, desc) should have the proper description -ok 534 - isnt_strict(func, 0 args, desc) should have the proper diagnostics -ok 535 - is_strict(func, 0 args) should pass -ok 536 - is_strict(func, 0 args) should have the proper description -ok 537 - is_strict(func, 0 args) should have the proper diagnostics -ok 538 - isnt_strict(func, 0 args) should fail -ok 539 - isnt_strict(func, 0 args) should have the proper description -ok 540 - isnt_strict(func, 0 args) should have the proper diagnostics -ok 541 - is_strict(func, args, desc) should fail -ok 542 - is_strict(func, args, desc) should have the proper description -ok 543 - is_strict(func, args, desc) should have the proper diagnostics -ok 544 - isnt_strict(func, args, desc) should pass -ok 545 - isnt_strict(func, args, desc) should have the proper description -ok 546 - isnt_strict(func, args, desc) should have the proper diagnostics -ok 547 - is_strict(func, args) should fail -ok 548 - is_strict(func, args) should have the proper description -ok 549 - is_strict(func, args) should have the proper diagnostics -ok 550 - isnt_strict(func, args) should pass -ok 551 - isnt_strict(func, args) should have the proper description -ok 552 - isnt_strict(func, args) should have the proper diagnostics -ok 553 - is_strict(func, desc) should pass -ok 554 - is_strict(func, desc) should have the proper description -ok 555 - is_strict(func, desc) should have the proper diagnostics -ok 556 - isnt_strict(func, desc) should fail -ok 557 - isnt_strict(func, desc) should have the proper description -ok 558 - isnt_strict(func, desc) should have the proper diagnostics -ok 559 - is_strict(func) should pass -ok 560 - is_strict(func) should have the proper description -ok 561 - is_strict(func) should have the proper diagnostics -ok 562 - isnt_strict(func) should fail -ok 563 - isnt_strict(func) should have the proper description -ok 564 - isnt_strict(func) should have the proper diagnostics -ok 565 - function_volatility(schema, func, 0 args, volatile, desc) should pass -ok 566 - function_volatility(schema, func, 0 args, volatile, desc) should have the proper description -ok 567 - function_volatility(schema, func, 0 args, volatile, desc) should have the proper diagnostics -ok 568 - function_volatility(schema, func, 0 args, VOLATILE, desc) should pass -ok 569 - function_volatility(schema, func, 0 args, VOLATILE, desc) should have the proper description -ok 570 - function_volatility(schema, func, 0 args, VOLATILE, desc) should have the proper diagnostics -ok 571 - function_volatility(schema, func, 0 args, v, desc) should pass -ok 572 - function_volatility(schema, func, 0 args, v, desc) should have the proper description -ok 573 - function_volatility(schema, func, 0 args, v, desc) should have the proper diagnostics -ok 574 - function_volatility(schema, func, args, immutable, desc) should pass -ok 575 - function_volatility(schema, func, args, immutable, desc) should have the proper description -ok 576 - function_volatility(schema, func, args, immutable, desc) should have the proper diagnostics -ok 577 - function_volatility(schema, func, 0 args, stable, desc) should pass -ok 578 - function_volatility(schema, func, 0 args, stable, desc) should have the proper description -ok 579 - function_volatility(schema, func, 0 args, stable, desc) should have the proper diagnostics -ok 580 - function_volatility(schema, func, 0 args, volatile) should pass -ok 581 - function_volatility(schema, func, 0 args, volatile) should have the proper description -ok 582 - function_volatility(schema, func, 0 args, volatile) should have the proper diagnostics -ok 583 - function_volatility(schema, func, args, immutable) should pass -ok 584 - function_volatility(schema, func, args, immutable) should have the proper description -ok 585 - function_volatility(schema, func, volatile, desc) should pass -ok 586 - function_volatility(schema, func, volatile, desc) should have the proper description -ok 587 - function_volatility(schema, func, volatile, desc) should have the proper diagnostics -ok 588 - function_volatility(schema, func, volatile) should pass -ok 589 - function_volatility(schema, func, volatile) should have the proper description -ok 590 - function_volatility(schema, func, volatile) should have the proper diagnostics -ok 591 - function_volatility(schema, func, immutable, desc) should pass -ok 592 - function_volatility(schema, func, immutable, desc) should have the proper description -ok 593 - function_volatility(schema, func, immutable, desc) should have the proper diagnostics -ok 594 - function_volatility(schema, func, stable, desc) should pass -ok 595 - function_volatility(schema, func, stable, desc) should have the proper description -ok 596 - function_volatility(schema, func, stable, desc) should have the proper diagnostics -ok 597 - function_volatility(func, 0 args, volatile, desc) should pass -ok 598 - function_volatility(func, 0 args, volatile, desc) should have the proper description -ok 599 - function_volatility(func, 0 args, volatile, desc) should have the proper diagnostics -ok 600 - function_volatility(func, 0 args, VOLATILE, desc) should pass -ok 601 - function_volatility(func, 0 args, VOLATILE, desc) should have the proper description -ok 602 - function_volatility(func, 0 args, VOLATILE, desc) should have the proper diagnostics -ok 603 - function_volatility(func, 0 args, v, desc) should pass -ok 604 - function_volatility(func, 0 args, v, desc) should have the proper description -ok 605 - function_volatility(func, 0 args, v, desc) should have the proper diagnostics -ok 606 - function_volatility(func, args, immutable, desc) should pass -ok 607 - function_volatility(func, args, immutable, desc) should have the proper description -ok 608 - function_volatility(func, args, immutable, desc) should have the proper diagnostics -ok 609 - function_volatility(func, 0 args, stable, desc) should pass -ok 610 - function_volatility(func, 0 args, stable, desc) should have the proper description -ok 611 - function_volatility(func, 0 args, stable, desc) should have the proper diagnostics -ok 612 - function_volatility(func, 0 args, volatile) should pass -ok 613 - function_volatility(func, 0 args, volatile) should have the proper description -ok 614 - function_volatility(func, 0 args, volatile) should have the proper diagnostics -ok 615 - function_volatility(func, args, immutable) should pass -ok 616 - function_volatility(func, args, immutable) should have the proper description -ok 617 - function_volatility(func, volatile, desc) should pass -ok 618 - function_volatility(func, volatile, desc) should have the proper description -ok 619 - function_volatility(func, volatile, desc) should have the proper diagnostics -ok 620 - function_volatility(func, volatile) should pass -ok 621 - function_volatility(func, volatile) should have the proper description -ok 622 - function_volatility(func, volatile) should have the proper diagnostics -ok 623 - function_volatility(func, immutable, desc) should pass -ok 624 - function_volatility(func, immutable, desc) should have the proper description -ok 625 - function_volatility(func, immutable, desc) should have the proper diagnostics -ok 626 - function_volatility(func, stable, desc) should pass -ok 627 - function_volatility(func, stable, desc) should have the proper description -ok 628 - function_volatility(func, stable, desc) should have the proper diagnostics +ok 82 - function_checksum_is(name,text) should fail should fail +ok 83 - function_checksum_is(name,text) should fail should have the proper description +ok 84 - function_checksum_is(name,text,text) should fail should fail +ok 85 - function_checksum_is(name,text,text) should fail should have the proper description +ok 86 - function_checksum_is(name,name,text) should fail should fail +ok 87 - function_checksum_is(name,name,text) should fail should have the proper description +ok 88 - function_checksum_is(name,name,text,text) should fail should fail +ok 89 - function_checksum_is(name,name,text,text) should fail should have the proper description +ok 90 - function_checksum_is(name,name[],text) should succeed should pass +ok 91 - function_checksum_is(name,name[],text) should succeed should have the proper description +ok 92 - function_checksum_is(name,name[],text,text) should succeed should pass +ok 93 - function_checksum_is(name,name[],text,text) should succeed should have the proper description +ok 94 - function_checksum_is(name,name[],text) should succeed should pass +ok 95 - function_checksum_is(name,name[],text) should succeed should have the proper description +ok 96 - function_checksum_is(name,name,name[],text,text) should succeed should pass +ok 97 - function_checksum_is(name,name,name[],text,text) should succeed should have the proper description +ok 98 - can(schema) with desc should pass +ok 99 - can(schema) with desc should have the proper description +ok 100 - can(schema) with desc should have the proper diagnostics +ok 101 - can(schema) should pass +ok 102 - can(schema) should have the proper description +ok 103 - can(schema) should have the proper diagnostics +ok 104 - fail can(schema) with desc should fail +ok 105 - fail can(schema) with desc should have the proper description +ok 106 - fail can(schema) with desc should have the proper diagnostics +ok 107 - fail can(someschema) with desc should fail +ok 108 - fail can(someschema) with desc should have the proper description +ok 109 - fail can(someschema) with desc should have the proper diagnostics +ok 110 - can() with desc should pass +ok 111 - can() with desc should have the proper description +ok 112 - can() with desc should have the proper diagnostics +ok 113 - can(schema) should pass +ok 114 - can(schema) should have the proper description +ok 115 - can(schema) should have the proper diagnostics +ok 116 - fail can() with desc should fail +ok 117 - fail can() with desc should have the proper description +ok 118 - fail can() with desc should have the proper diagnostics +ok 119 - function_lang_is(schema, func, 0 args, sql, desc) should pass +ok 120 - function_lang_is(schema, func, 0 args, sql, desc) should have the proper description +ok 121 - function_lang_is(schema, func, 0 args, sql, desc) should have the proper diagnostics +ok 122 - function_lang_is(schema, func, 0 args, sql) should pass +ok 123 - function_lang_is(schema, func, 0 args, sql) should have the proper description +ok 124 - function_lang_is(schema, func, 0 args, sql) should have the proper diagnostics +ok 125 - function_lang_is(schema, func, args, plpgsql, desc) should pass +ok 126 - function_lang_is(schema, func, args, plpgsql, desc) should have the proper description +ok 127 - function_lang_is(schema, func, args, plpgsql, desc) should have the proper diagnostics +ok 128 - function_lang_is(schema, func, args, plpgsql) should pass +ok 129 - function_lang_is(schema, func, args, plpgsql) should have the proper description +ok 130 - function_lang_is(schema, func, args, plpgsql) should have the proper diagnostics +ok 131 - function_lang_is(schema, func, 0 args, perl, desc) should fail +ok 132 - function_lang_is(schema, func, 0 args, perl, desc) should have the proper description +ok 133 - function_lang_is(schema, func, 0 args, perl, desc) should have the proper diagnostics +ok 134 - function_lang_is(schema, non-func, 0 args, sql, desc) should fail +ok 135 - function_lang_is(schema, non-func, 0 args, sql, desc) should have the proper description +ok 136 - function_lang_is(schema, non-func, 0 args, sql, desc) should have the proper diagnostics +ok 137 - function_lang_is(schema, func, args, plpgsql) should fail +ok 138 - function_lang_is(schema, func, args, plpgsql) should have the proper description +ok 139 - function_lang_is(schema, func, args, plpgsql) should have the proper diagnostics +ok 140 - function_lang_is(schema, func, sql, desc) should pass +ok 141 - function_lang_is(schema, func, sql, desc) should have the proper description +ok 142 - function_lang_is(schema, func, sql, desc) should have the proper diagnostics +ok 143 - function_lang_is(schema, func, sql) should pass +ok 144 - function_lang_is(schema, func, sql) should have the proper description +ok 145 - function_lang_is(schema, func, sql) should have the proper diagnostics +ok 146 - function_lang_is(schema, func, perl, desc) should fail +ok 147 - function_lang_is(schema, func, perl, desc) should have the proper description +ok 148 - function_lang_is(schema, func, perl, desc) should have the proper diagnostics +ok 149 - function_lang_is(schema, non-func, sql, desc) should fail +ok 150 - function_lang_is(schema, non-func, sql, desc) should have the proper description +ok 151 - function_lang_is(schema, non-func, sql, desc) should have the proper diagnostics +ok 152 - function_lang_is(func, 0 args, sql, desc) should pass +ok 153 - function_lang_is(func, 0 args, sql, desc) should have the proper description +ok 154 - function_lang_is(func, 0 args, sql, desc) should have the proper diagnostics +ok 155 - function_lang_is(func, 0 args, sql) should pass +ok 156 - function_lang_is(func, 0 args, sql) should have the proper description +ok 157 - function_lang_is(func, 0 args, sql) should have the proper diagnostics +ok 158 - function_lang_is(func, args, plpgsql, desc) should pass +ok 159 - function_lang_is(func, args, plpgsql, desc) should have the proper description +ok 160 - function_lang_is(func, args, plpgsql, desc) should have the proper diagnostics +ok 161 - function_lang_is(func, args, plpgsql) should pass +ok 162 - function_lang_is(func, args, plpgsql) should have the proper description +ok 163 - function_lang_is(func, args, plpgsql) should have the proper diagnostics +ok 164 - function_lang_is(func, 0 args, perl, desc) should fail +ok 165 - function_lang_is(func, 0 args, perl, desc) should have the proper description +ok 166 - function_lang_is(func, 0 args, perl, desc) should have the proper diagnostics +ok 167 - function_lang_is(non-func, 0 args, sql, desc) should fail +ok 168 - function_lang_is(non-func, 0 args, sql, desc) should have the proper description +ok 169 - function_lang_is(non-func, 0 args, sql, desc) should have the proper diagnostics +ok 170 - function_lang_is(func, args, plpgsql) should fail +ok 171 - function_lang_is(func, args, plpgsql) should have the proper description +ok 172 - function_lang_is(func, args, plpgsql) should have the proper diagnostics +ok 173 - function_lang_is(func, sql, desc) should pass +ok 174 - function_lang_is(func, sql, desc) should have the proper description +ok 175 - function_lang_is(func, sql, desc) should have the proper diagnostics +ok 176 - function_lang_is(func, sql) should pass +ok 177 - function_lang_is(func, sql) should have the proper description +ok 178 - function_lang_is(func, sql) should have the proper diagnostics +ok 179 - function_lang_is(func, perl, desc) should fail +ok 180 - function_lang_is(func, perl, desc) should have the proper description +ok 181 - function_lang_is(func, perl, desc) should have the proper diagnostics +ok 182 - function_lang_is(non-func, sql, desc) should fail +ok 183 - function_lang_is(non-func, sql, desc) should have the proper description +ok 184 - function_lang_is(non-func, sql, desc) should have the proper diagnostics +ok 185 - function_returns(schema, func, 0 args, bool, desc) should pass +ok 186 - function_returns(schema, func, 0 args, bool, desc) should have the proper description +ok 187 - function_returns(schema, func, 0 args, bool, desc) should have the proper diagnostics +ok 188 - function_returns(schema, func, 0 args, bool) should pass +ok 189 - function_returns(schema, func, 0 args, bool) should have the proper description +ok 190 - function_returns(schema, func, 0 args, bool) should have the proper diagnostics +ok 191 - function_returns(schema, func, args, bool, false) should pass +ok 192 - function_returns(schema, func, args, bool, false) should have the proper description +ok 193 - function_returns(schema, func, args, bool, false) should have the proper diagnostics +ok 194 - function_returns(schema, func, args, bool) should pass +ok 195 - function_returns(schema, func, args, bool) should have the proper description +ok 196 - function_returns(schema, func, args, bool) should have the proper diagnostics +ok 197 - function_returns(schema, func, 0 args, setof bool, desc) should pass +ok 198 - function_returns(schema, func, 0 args, setof bool, desc) should have the proper description +ok 199 - function_returns(schema, func, 0 args, setof bool, desc) should have the proper diagnostics +ok 200 - function_returns(schema, func, 0 args, setof bool) should pass +ok 201 - function_returns(schema, func, 0 args, setof bool) should have the proper description +ok 202 - function_returns(schema, func, 0 args, setof bool) should have the proper diagnostics +ok 203 - function_returns(schema, func, bool, desc) should pass +ok 204 - function_returns(schema, func, bool, desc) should have the proper description +ok 205 - function_returns(schema, func, bool, desc) should have the proper diagnostics +ok 206 - function_returns(schema, func, bool) should pass +ok 207 - function_returns(schema, func, bool) should have the proper description +ok 208 - function_returns(schema, func, bool) should have the proper diagnostics +ok 209 - function_returns(schema, other func, bool, false) should pass +ok 210 - function_returns(schema, other func, bool, false) should have the proper description +ok 211 - function_returns(schema, other func, bool, false) should have the proper diagnostics +ok 212 - function_returns(schema, other func, bool) should pass +ok 213 - function_returns(schema, other func, bool) should have the proper description +ok 214 - function_returns(schema, other func, bool) should have the proper diagnostics +ok 215 - function_returns(schema, func, setof bool, desc) should pass +ok 216 - function_returns(schema, func, setof bool, desc) should have the proper description +ok 217 - function_returns(schema, func, setof bool, desc) should have the proper diagnostics +ok 218 - function_returns(schema, func, setof bool) should pass +ok 219 - function_returns(schema, func, setof bool) should have the proper description +ok 220 - function_returns(schema, func, setof bool) should have the proper diagnostics +ok 221 - function_returns(func, 0 args, bool, desc) should pass +ok 222 - function_returns(func, 0 args, bool, desc) should have the proper description +ok 223 - function_returns(func, 0 args, bool, desc) should have the proper diagnostics +ok 224 - function_returns(func, 0 args, bool) should pass +ok 225 - function_returns(func, 0 args, bool) should have the proper description +ok 226 - function_returns(func, 0 args, bool) should have the proper diagnostics +ok 227 - function_returns(func, args, bool, false) should pass +ok 228 - function_returns(func, args, bool, false) should have the proper description +ok 229 - function_returns(func, args, bool, false) should have the proper diagnostics +ok 230 - function_returns(func, args, bool) should pass +ok 231 - function_returns(func, args, bool) should have the proper description +ok 232 - function_returns(func, args, bool) should have the proper diagnostics +ok 233 - function_returns(func, 0 args, setof bool, desc) should pass +ok 234 - function_returns(func, 0 args, setof bool, desc) should have the proper description +ok 235 - function_returns(func, 0 args, setof bool, desc) should have the proper diagnostics +ok 236 - function_returns(func, 0 args, setof bool) should pass +ok 237 - function_returns(func, 0 args, setof bool) should have the proper description +ok 238 - function_returns(func, 0 args, setof bool) should have the proper diagnostics +ok 239 - function_returns(func, bool, desc) should pass +ok 240 - function_returns(func, bool, desc) should have the proper description +ok 241 - function_returns(func, bool, desc) should have the proper diagnostics +ok 242 - function_returns(func, bool) should pass +ok 243 - function_returns(func, bool) should have the proper description +ok 244 - function_returns(func, bool) should have the proper diagnostics +ok 245 - function_returns(other func, bool, false) should pass +ok 246 - function_returns(other func, bool, false) should have the proper description +ok 247 - function_returns(other func, bool, false) should have the proper diagnostics +ok 248 - function_returns(other func, bool) should pass +ok 249 - function_returns(other func, bool) should have the proper description +ok 250 - function_returns(other func, bool) should have the proper diagnostics +ok 251 - function_returns(func, setof bool, desc) should pass +ok 252 - function_returns(func, setof bool, desc) should have the proper description +ok 253 - function_returns(func, setof bool, desc) should have the proper diagnostics +ok 254 - function_returns(func, setof bool) should pass +ok 255 - function_returns(func, setof bool) should have the proper description +ok 256 - function_returns(func, setof bool) should have the proper diagnostics +ok 257 - is_definer(schema, func, 0 args, desc) should pass +ok 258 - is_definer(schema, func, 0 args, desc) should have the proper description +ok 259 - is_definer(schema, func, 0 args, desc) should have the proper diagnostics +ok 260 - isnt_definer(schema, func, 0 args, desc) should fail +ok 261 - isnt_definer(schema, func, 0 args, desc) should have the proper description +ok 262 - isnt_definer(schema, func, 0 args, desc) should have the proper diagnostics +ok 263 - is_definer(schema, func, 0 args) should pass +ok 264 - is_definer(schema, func, 0 args) should have the proper description +ok 265 - is_definer(schema, func, 0 args) should have the proper diagnostics +ok 266 - isnt_definer(schema, func, 0 args) should fail +ok 267 - isnt_definer(schema, func, 0 args) should have the proper description +ok 268 - isnt_definer(schema, func, 0 args) should have the proper diagnostics +ok 269 - is_definer(schema, func, args, desc) should fail +ok 270 - is_definer(schema, func, args, desc) should have the proper description +ok 271 - is_definer(schema, func, args, desc) should have the proper diagnostics +ok 272 - isnt_definer(schema, func, args, desc) should pass +ok 273 - isnt_definer(schema, func, args, desc) should have the proper description +ok 274 - isnt_definer(schema, func, args, desc) should have the proper diagnostics +ok 275 - is_definer(schema, func, args) should fail +ok 276 - is_definer(schema, func, args) should have the proper description +ok 277 - is_definer(schema, func, args) should have the proper diagnostics +ok 278 - isnt_definer(schema, func, args) should pass +ok 279 - isnt_definer(schema, func, args) should have the proper description +ok 280 - isnt_definer(schema, func, args) should have the proper diagnostics +ok 281 - is_definer(schema, func, desc) should pass +ok 282 - is_definer(schema, func, desc) should have the proper description +ok 283 - is_definer(schema, func, desc) should have the proper diagnostics +ok 284 - isnt_definer(schema, func, desc) should fail +ok 285 - isnt_definer(schema, func, desc) should have the proper description +ok 286 - isnt_definer(schema, func, desc) should have the proper diagnostics +ok 287 - is_definer(schema, func) should pass +ok 288 - is_definer(schema, func) should have the proper description +ok 289 - is_definer(schema, func) should have the proper diagnostics +ok 290 - isnt_definer(schema, func) should fail +ok 291 - isnt_definer(schema, func) should have the proper description +ok 292 - isnt_definer(schema, func) should have the proper diagnostics +ok 293 - is_definer(schema, func, 0 args, desc) should pass +ok 294 - is_definer(schema, func, 0 args, desc) should have the proper description +ok 295 - is_definer(schema, func, 0 args, desc) should have the proper diagnostics +ok 296 - isnt_definer(schema, func, 0 args, desc) should fail +ok 297 - isnt_definer(schema, func, 0 args, desc) should have the proper description +ok 298 - isnt_definer(schema, func, 0 args, desc) should have the proper diagnostics +ok 299 - is_definer(schema, func, 0 args) should pass +ok 300 - is_definer(schema, func, 0 args) should have the proper description +ok 301 - is_definer(schema, func, 0 args) should have the proper diagnostics +ok 302 - isnt_definer(schema, func, 0 args) should fail +ok 303 - isnt_definer(schema, func, 0 args) should have the proper description +ok 304 - isnt_definer(schema, func, 0 args) should have the proper diagnostics +ok 305 - is_definer(schema, func, args, desc) should fail +ok 306 - is_definer(schema, func, args, desc) should have the proper description +ok 307 - is_definer(schema, func, args, desc) should have the proper diagnostics +ok 308 - isnt_definer(schema, func, args, desc) should pass +ok 309 - isnt_definer(schema, func, args, desc) should have the proper description +ok 310 - isnt_definer(schema, func, args, desc) should have the proper diagnostics +ok 311 - is_definer(schema, func, args) should fail +ok 312 - is_definer(schema, func, args) should have the proper description +ok 313 - is_definer(schema, func, args) should have the proper diagnostics +ok 314 - isnt_definer(schema, func, args) should pass +ok 315 - isnt_definer(schema, func, args) should have the proper description +ok 316 - isnt_definer(schema, func, args) should have the proper diagnostics +ok 317 - is_definer(schema, func, desc) should pass +ok 318 - is_definer(schema, func, desc) should have the proper description +ok 319 - is_definer(schema, func, desc) should have the proper diagnostics +ok 320 - isnt_definer(schema, func, desc) should fail +ok 321 - isnt_definer(schema, func, desc) should have the proper description +ok 322 - isnt_definer(schema, func, desc) should have the proper diagnostics +ok 323 - is_definer(schema, func) should pass +ok 324 - is_definer(schema, func) should have the proper description +ok 325 - is_definer(schema, func) should have the proper diagnostics +ok 326 - isnt_definer(schema, func) should fail +ok 327 - isnt_definer(schema, func) should have the proper description +ok 328 - isnt_definer(schema, func) should have the proper diagnostics +ok 329 - is_definer(func, 0 args, desc) should pass +ok 330 - is_definer(func, 0 args, desc) should have the proper description +ok 331 - is_definer(func, 0 args, desc) should have the proper diagnostics +ok 332 - isnt_definer(func, 0 args, desc) should fail +ok 333 - isnt_definer(func, 0 args, desc) should have the proper description +ok 334 - isnt_definer(func, 0 args, desc) should have the proper diagnostics +ok 335 - is_definer(func, 0 args) should pass +ok 336 - is_definer(func, 0 args) should have the proper description +ok 337 - is_definer(func, 0 args) should have the proper diagnostics +ok 338 - isnt_definer(func, 0 args) should fail +ok 339 - isnt_definer(func, 0 args) should have the proper description +ok 340 - isnt_definer(func, 0 args) should have the proper diagnostics +ok 341 - is_definer(func, args, desc) should fail +ok 342 - is_definer(func, args, desc) should have the proper description +ok 343 - is_definer(func, args, desc) should have the proper diagnostics +ok 344 - isnt_definer(func, args, desc) should pass +ok 345 - isnt_definer(func, args, desc) should have the proper description +ok 346 - isnt_definer(func, args, desc) should have the proper diagnostics +ok 347 - is_definer(func, args) should fail +ok 348 - is_definer(func, args) should have the proper description +ok 349 - is_definer(func, args) should have the proper diagnostics +ok 350 - isnt_definer(func, args) should pass +ok 351 - isnt_definer(func, args) should have the proper description +ok 352 - isnt_definer(func, args) should have the proper diagnostics +ok 353 - is_definer(func, desc) should pass +ok 354 - is_definer(func, desc) should have the proper description +ok 355 - is_definer(func, desc) should have the proper diagnostics +ok 356 - isnt_definer(func, desc) should fail +ok 357 - isnt_definer(func, desc) should have the proper description +ok 358 - isnt_definer(func, desc) should have the proper diagnostics +ok 359 - is_definer(func) should pass +ok 360 - is_definer(func) should have the proper description +ok 361 - is_definer(func) should have the proper diagnostics +ok 362 - isnt_definer(func) should fail +ok 363 - isnt_definer(func) should have the proper description +ok 364 - isnt_definer(func) should have the proper diagnostics +ok 365 - is_aggregate(schema, func, arg, desc) should pass +ok 366 - is_aggregate(schema, func, arg, desc) should have the proper description +ok 367 - is_aggregate(schema, func, arg, desc) should have the proper diagnostics +ok 368 - isnt_aggregate(schema, func, arg, desc) should fail +ok 369 - isnt_aggregate(schema, func, arg, desc) should have the proper description +ok 370 - isnt_aggregate(schema, func, arg, desc) should have the proper diagnostics +ok 371 - is_aggregate(schema, func, arg) should pass +ok 372 - is_aggregate(schema, func, arg) should have the proper description +ok 373 - is_aggregate(schema, func, arg) should have the proper diagnostics +ok 374 - isnt_aggregate(schema, func, arg) should fail +ok 375 - isnt_aggregate(schema, func, arg) should have the proper description +ok 376 - isnt_aggregate(schema, func, arg) should have the proper diagnostics +ok 377 - is_aggregate(schema, func, args, desc) should fail +ok 378 - is_aggregate(schema, func, args, desc) should have the proper description +ok 379 - is_aggregate(schema, func, args, desc) should have the proper diagnostics +ok 380 - isnt_aggregate(schema, func, args, desc) should pass +ok 381 - isnt_aggregate(schema, func, args, desc) should have the proper description +ok 382 - isnt_aggregate(schema, func, args, desc) should have the proper diagnostics +ok 383 - is_aggregate(schema, func, args) should fail +ok 384 - is_aggregate(schema, func, args) should have the proper description +ok 385 - is_aggregate(schema, func, args) should have the proper diagnostics +ok 386 - isnt_aggregate(schema, func, args) should pass +ok 387 - isnt_aggregate(schema, func, args) should have the proper description +ok 388 - isnt_aggregate(schema, func, args) should have the proper diagnostics +ok 389 - is_aggregate(schema, func, desc) should pass +ok 390 - is_aggregate(schema, func, desc) should have the proper description +ok 391 - is_aggregate(schema, func, desc) should have the proper diagnostics +ok 392 - isnt_aggregate(schema, func, desc) should fail +ok 393 - isnt_aggregate(schema, func, desc) should have the proper description +ok 394 - isnt_aggregate(schema, func, desc) should have the proper diagnostics +ok 395 - is_aggregate(schema, func) should pass +ok 396 - is_aggregate(schema, func) should have the proper description +ok 397 - is_aggregate(schema, func) should have the proper diagnostics +ok 398 - isnt_aggregate(schema, func) should fail +ok 399 - isnt_aggregate(schema, func) should have the proper description +ok 400 - isnt_aggregate(schema, func) should have the proper diagnostics +ok 401 - is_aggregate(schema, func, arg, desc) should pass +ok 402 - is_aggregate(schema, func, arg, desc) should have the proper description +ok 403 - is_aggregate(schema, func, arg, desc) should have the proper diagnostics +ok 404 - isnt_aggregate(schema, func, arg, desc) should fail +ok 405 - isnt_aggregate(schema, func, arg, desc) should have the proper description +ok 406 - isnt_aggregate(schema, func, arg, desc) should have the proper diagnostics +ok 407 - is_aggregate(schema, func, arg) should pass +ok 408 - is_aggregate(schema, func, arg) should have the proper description +ok 409 - is_aggregate(schema, func, arg) should have the proper diagnostics +ok 410 - isnt_aggregate(schema, func, arg) should fail +ok 411 - isnt_aggregate(schema, func, arg) should have the proper description +ok 412 - isnt_aggregate(schema, func, arg) should have the proper diagnostics +ok 413 - is_aggregate(schema, func, args, desc) should fail +ok 414 - is_aggregate(schema, func, args, desc) should have the proper description +ok 415 - is_aggregate(schema, func, args, desc) should have the proper diagnostics +ok 416 - isnt_aggregate(schema, func, args, desc) should pass +ok 417 - isnt_aggregate(schema, func, args, desc) should have the proper description +ok 418 - isnt_aggregate(schema, func, args, desc) should have the proper diagnostics +ok 419 - is_aggregate(schema, func, args) should fail +ok 420 - is_aggregate(schema, func, args) should have the proper description +ok 421 - is_aggregate(schema, func, args) should have the proper diagnostics +ok 422 - isnt_aggregate(schema, func, args) should pass +ok 423 - isnt_aggregate(schema, func, args) should have the proper description +ok 424 - isnt_aggregate(schema, func, args) should have the proper diagnostics +ok 425 - is_aggregate(schema, func, desc) should pass +ok 426 - is_aggregate(schema, func, desc) should have the proper description +ok 427 - is_aggregate(schema, func, desc) should have the proper diagnostics +ok 428 - isnt_aggregate(schema, func, desc) should fail +ok 429 - isnt_aggregate(schema, func, desc) should have the proper description +ok 430 - isnt_aggregate(schema, func, desc) should have the proper diagnostics +ok 431 - is_aggregate(schema, func) should pass +ok 432 - is_aggregate(schema, func) should have the proper description +ok 433 - is_aggregate(schema, func) should have the proper diagnostics +ok 434 - isnt_aggregate(schema, func) should fail +ok 435 - isnt_aggregate(schema, func) should have the proper description +ok 436 - isnt_aggregate(schema, func) should have the proper diagnostics +ok 437 - is_aggregate(func, arg, desc) should pass +ok 438 - is_aggregate(func, arg, desc) should have the proper description +ok 439 - is_aggregate(func, arg, desc) should have the proper diagnostics +ok 440 - isnt_aggregate(func, arg, desc) should fail +ok 441 - isnt_aggregate(func, arg, desc) should have the proper description +ok 442 - isnt_aggregate(func, arg, desc) should have the proper diagnostics +ok 443 - is_aggregate(func, arg) should pass +ok 444 - is_aggregate(func, arg) should have the proper description +ok 445 - is_aggregate(func, arg) should have the proper diagnostics +ok 446 - isnt_aggregate(func, arg) should fail +ok 447 - isnt_aggregate(func, arg) should have the proper description +ok 448 - isnt_aggregate(func, arg) should have the proper diagnostics +ok 449 - is_aggregate(func, args, desc) should fail +ok 450 - is_aggregate(func, args, desc) should have the proper description +ok 451 - is_aggregate(func, args, desc) should have the proper diagnostics +ok 452 - isnt_aggregate(func, args, desc) should pass +ok 453 - isnt_aggregate(func, args, desc) should have the proper description +ok 454 - isnt_aggregate(func, args, desc) should have the proper diagnostics +ok 455 - is_aggregate(func, args) should fail +ok 456 - is_aggregate(func, args) should have the proper description +ok 457 - is_aggregate(func, args) should have the proper diagnostics +ok 458 - isnt_aggregate(func, args) should pass +ok 459 - isnt_aggregate(func, args) should have the proper description +ok 460 - isnt_aggregate(func, args) should have the proper diagnostics +ok 461 - is_aggregate(func, desc) should pass +ok 462 - is_aggregate(func, desc) should have the proper description +ok 463 - is_aggregate(func, desc) should have the proper diagnostics +ok 464 - isnt_aggregate(func, desc) should fail +ok 465 - isnt_aggregate(func, desc) should have the proper description +ok 466 - isnt_aggregate(func, desc) should have the proper diagnostics +ok 467 - is_aggregate(func) should pass +ok 468 - is_aggregate(func) should have the proper description +ok 469 - is_aggregate(func) should have the proper diagnostics +ok 470 - isnt_aggregate(func) should fail +ok 471 - isnt_aggregate(func) should have the proper description +ok 472 - isnt_aggregate(func) should have the proper diagnostics +ok 473 - is_strict(schema, func, 0 args, desc) should pass +ok 474 - is_strict(schema, func, 0 args, desc) should have the proper description +ok 475 - is_strict(schema, func, 0 args, desc) should have the proper diagnostics +ok 476 - isnt_strict(schema, func, 0 args, desc) should fail +ok 477 - isnt_strict(schema, func, 0 args, desc) should have the proper description +ok 478 - isnt_strict(schema, func, 0 args, desc) should have the proper diagnostics +ok 479 - is_strict(schema, func, 0 args) should pass +ok 480 - is_strict(schema, func, 0 args) should have the proper description +ok 481 - is_strict(schema, func, 0 args) should have the proper diagnostics +ok 482 - isnt_strict(schema, func, 0 args) should fail +ok 483 - isnt_strict(schema, func, 0 args) should have the proper description +ok 484 - isnt_strict(schema, func, 0 args) should have the proper diagnostics +ok 485 - is_strict(schema, func, args, desc) should fail +ok 486 - is_strict(schema, func, args, desc) should have the proper description +ok 487 - is_strict(schema, func, args, desc) should have the proper diagnostics +ok 488 - is_strict(schema, func, args, desc) should pass +ok 489 - is_strict(schema, func, args, desc) should have the proper description +ok 490 - is_strict(schema, func, args, desc) should have the proper diagnostics +ok 491 - is_strict(schema, func, args) should fail +ok 492 - is_strict(schema, func, args) should have the proper description +ok 493 - is_strict(schema, func, args) should have the proper diagnostics +ok 494 - is_strict(schema, func, args) should pass +ok 495 - is_strict(schema, func, args) should have the proper description +ok 496 - is_strict(schema, func, args) should have the proper diagnostics +ok 497 - is_strict(schema, func, desc) should pass +ok 498 - is_strict(schema, func, desc) should have the proper description +ok 499 - is_strict(schema, func, desc) should have the proper diagnostics +ok 500 - isnt_strict(schema, func, desc) should fail +ok 501 - isnt_strict(schema, func, desc) should have the proper description +ok 502 - isnt_strict(schema, func, desc) should have the proper diagnostics +ok 503 - is_strict(schema, func) should pass +ok 504 - is_strict(schema, func) should have the proper description +ok 505 - is_strict(schema, func) should have the proper diagnostics +ok 506 - isnt_strict(schema, func) should fail +ok 507 - isnt_strict(schema, func) should have the proper description +ok 508 - isnt_strict(schema, func) should have the proper diagnostics +ok 509 - is_strict(schema, func, 0 args, desc) should pass +ok 510 - is_strict(schema, func, 0 args, desc) should have the proper description +ok 511 - is_strict(schema, func, 0 args, desc) should have the proper diagnostics +ok 512 - isnt_strict(schema, func, 0 args, desc) should fail +ok 513 - isnt_strict(schema, func, 0 args, desc) should have the proper description +ok 514 - isnt_strict(schema, func, 0 args, desc) should have the proper diagnostics +ok 515 - is_strict(schema, func, 0 args) should pass +ok 516 - is_strict(schema, func, 0 args) should have the proper description +ok 517 - is_strict(schema, func, 0 args) should have the proper diagnostics +ok 518 - isnt_strict(schema, func, 0 args) should fail +ok 519 - isnt_strict(schema, func, 0 args) should have the proper description +ok 520 - isnt_strict(schema, func, 0 args) should have the proper diagnostics +ok 521 - is_strict(schema, func, args, desc) should fail +ok 522 - is_strict(schema, func, args, desc) should have the proper description +ok 523 - is_strict(schema, func, args, desc) should have the proper diagnostics +ok 524 - isnt_strict(schema, func, args, desc) should pass +ok 525 - isnt_strict(schema, func, args, desc) should have the proper description +ok 526 - isnt_strict(schema, func, args, desc) should have the proper diagnostics +ok 527 - is_strict(schema, func, args) should fail +ok 528 - is_strict(schema, func, args) should have the proper description +ok 529 - is_strict(schema, func, args) should have the proper diagnostics +ok 530 - isnt_strict(schema, func, args) should pass +ok 531 - isnt_strict(schema, func, args) should have the proper description +ok 532 - isnt_strict(schema, func, args) should have the proper diagnostics +ok 533 - is_strict(schema, func, desc) should pass +ok 534 - is_strict(schema, func, desc) should have the proper description +ok 535 - is_strict(schema, func, desc) should have the proper diagnostics +ok 536 - isnt_strict(schema, func, desc) should fail +ok 537 - isnt_strict(schema, func, desc) should have the proper description +ok 538 - isnt_strict(schema, func, desc) should have the proper diagnostics +ok 539 - is_strict(schema, func) should pass +ok 540 - is_strict(schema, func) should have the proper description +ok 541 - is_strict(schema, func) should have the proper diagnostics +ok 542 - isnt_strict(schema, func) should fail +ok 543 - isnt_strict(schema, func) should have the proper description +ok 544 - isnt_strict(schema, func) should have the proper diagnostics +ok 545 - is_strict(func, 0 args, desc) should pass +ok 546 - is_strict(func, 0 args, desc) should have the proper description +ok 547 - is_strict(func, 0 args, desc) should have the proper diagnostics +ok 548 - isnt_strict(func, 0 args, desc) should fail +ok 549 - isnt_strict(func, 0 args, desc) should have the proper description +ok 550 - isnt_strict(func, 0 args, desc) should have the proper diagnostics +ok 551 - is_strict(func, 0 args) should pass +ok 552 - is_strict(func, 0 args) should have the proper description +ok 553 - is_strict(func, 0 args) should have the proper diagnostics +ok 554 - isnt_strict(func, 0 args) should fail +ok 555 - isnt_strict(func, 0 args) should have the proper description +ok 556 - isnt_strict(func, 0 args) should have the proper diagnostics +ok 557 - is_strict(func, args, desc) should fail +ok 558 - is_strict(func, args, desc) should have the proper description +ok 559 - is_strict(func, args, desc) should have the proper diagnostics +ok 560 - isnt_strict(func, args, desc) should pass +ok 561 - isnt_strict(func, args, desc) should have the proper description +ok 562 - isnt_strict(func, args, desc) should have the proper diagnostics +ok 563 - is_strict(func, args) should fail +ok 564 - is_strict(func, args) should have the proper description +ok 565 - is_strict(func, args) should have the proper diagnostics +ok 566 - isnt_strict(func, args) should pass +ok 567 - isnt_strict(func, args) should have the proper description +ok 568 - isnt_strict(func, args) should have the proper diagnostics +ok 569 - is_strict(func, desc) should pass +ok 570 - is_strict(func, desc) should have the proper description +ok 571 - is_strict(func, desc) should have the proper diagnostics +ok 572 - isnt_strict(func, desc) should fail +ok 573 - isnt_strict(func, desc) should have the proper description +ok 574 - isnt_strict(func, desc) should have the proper diagnostics +ok 575 - is_strict(func) should pass +ok 576 - is_strict(func) should have the proper description +ok 577 - is_strict(func) should have the proper diagnostics +ok 578 - isnt_strict(func) should fail +ok 579 - isnt_strict(func) should have the proper description +ok 580 - isnt_strict(func) should have the proper diagnostics +ok 581 - function_volatility(schema, func, 0 args, volatile, desc) should pass +ok 582 - function_volatility(schema, func, 0 args, volatile, desc) should have the proper description +ok 583 - function_volatility(schema, func, 0 args, volatile, desc) should have the proper diagnostics +ok 584 - function_volatility(schema, func, 0 args, VOLATILE, desc) should pass +ok 585 - function_volatility(schema, func, 0 args, VOLATILE, desc) should have the proper description +ok 586 - function_volatility(schema, func, 0 args, VOLATILE, desc) should have the proper diagnostics +ok 587 - function_volatility(schema, func, 0 args, v, desc) should pass +ok 588 - function_volatility(schema, func, 0 args, v, desc) should have the proper description +ok 589 - function_volatility(schema, func, 0 args, v, desc) should have the proper diagnostics +ok 590 - function_volatility(schema, func, args, immutable, desc) should pass +ok 591 - function_volatility(schema, func, args, immutable, desc) should have the proper description +ok 592 - function_volatility(schema, func, args, immutable, desc) should have the proper diagnostics +ok 593 - function_volatility(schema, func, 0 args, stable, desc) should pass +ok 594 - function_volatility(schema, func, 0 args, stable, desc) should have the proper description +ok 595 - function_volatility(schema, func, 0 args, stable, desc) should have the proper diagnostics +ok 596 - function_volatility(schema, func, 0 args, volatile) should pass +ok 597 - function_volatility(schema, func, 0 args, volatile) should have the proper description +ok 598 - function_volatility(schema, func, 0 args, volatile) should have the proper diagnostics +ok 599 - function_volatility(schema, func, args, immutable) should pass +ok 600 - function_volatility(schema, func, args, immutable) should have the proper description +ok 601 - function_volatility(schema, func, volatile, desc) should pass +ok 602 - function_volatility(schema, func, volatile, desc) should have the proper description +ok 603 - function_volatility(schema, func, volatile, desc) should have the proper diagnostics +ok 604 - function_volatility(schema, func, volatile) should pass +ok 605 - function_volatility(schema, func, volatile) should have the proper description +ok 606 - function_volatility(schema, func, volatile) should have the proper diagnostics +ok 607 - function_volatility(schema, func, immutable, desc) should pass +ok 608 - function_volatility(schema, func, immutable, desc) should have the proper description +ok 609 - function_volatility(schema, func, immutable, desc) should have the proper diagnostics +ok 610 - function_volatility(schema, func, stable, desc) should pass +ok 611 - function_volatility(schema, func, stable, desc) should have the proper description +ok 612 - function_volatility(schema, func, stable, desc) should have the proper diagnostics +ok 613 - function_volatility(func, 0 args, volatile, desc) should pass +ok 614 - function_volatility(func, 0 args, volatile, desc) should have the proper description +ok 615 - function_volatility(func, 0 args, volatile, desc) should have the proper diagnostics +ok 616 - function_volatility(func, 0 args, VOLATILE, desc) should pass +ok 617 - function_volatility(func, 0 args, VOLATILE, desc) should have the proper description +ok 618 - function_volatility(func, 0 args, VOLATILE, desc) should have the proper diagnostics +ok 619 - function_volatility(func, 0 args, v, desc) should pass +ok 620 - function_volatility(func, 0 args, v, desc) should have the proper description +ok 621 - function_volatility(func, 0 args, v, desc) should have the proper diagnostics +ok 622 - function_volatility(func, args, immutable, desc) should pass +ok 623 - function_volatility(func, args, immutable, desc) should have the proper description +ok 624 - function_volatility(func, args, immutable, desc) should have the proper diagnostics +ok 625 - function_volatility(func, 0 args, stable, desc) should pass +ok 626 - function_volatility(func, 0 args, stable, desc) should have the proper description +ok 627 - function_volatility(func, 0 args, stable, desc) should have the proper diagnostics +ok 628 - function_volatility(func, 0 args, volatile) should pass +ok 629 - function_volatility(func, 0 args, volatile) should have the proper description +ok 630 - function_volatility(func, 0 args, volatile) should have the proper diagnostics +ok 631 - function_volatility(func, args, immutable) should pass +ok 632 - function_volatility(func, args, immutable) should have the proper description +ok 633 - function_volatility(func, volatile, desc) should pass +ok 634 - function_volatility(func, volatile, desc) should have the proper description +ok 635 - function_volatility(func, volatile, desc) should have the proper diagnostics +ok 636 - function_volatility(func, volatile) should pass +ok 637 - function_volatility(func, volatile) should have the proper description +ok 638 - function_volatility(func, volatile) should have the proper diagnostics +ok 639 - function_volatility(func, immutable, desc) should pass +ok 640 - function_volatility(func, immutable, desc) should have the proper description +ok 641 - function_volatility(func, immutable, desc) should have the proper diagnostics +ok 642 - function_volatility(func, stable, desc) should pass +ok 643 - function_volatility(func, stable, desc) should have the proper description +ok 644 - function_volatility(func, stable, desc) should have the proper diagnostics diff --git a/test/sql/functap.sql b/test/sql/functap.sql index 8d6c5e604..56a99cab8 100644 --- a/test/sql/functap.sql +++ b/test/sql/functap.sql @@ -1,7 +1,7 @@ \unset ECHO \i test/setup.sql -SELECT plan(628); +SELECT plan(644); --SELECT * FROM no_plan(); CREATE SCHEMA someschema; @@ -253,6 +253,72 @@ SELECT * FROM check_test( '' ); +/****************************************************************************/ +-- Test function_checksum_is(). + +-- Test error message when checksum is wrong for these, as there is no way +-- to be sure we are getting their checksum, as there are several prototypes +SELECT * FROM check_test( + function_checksum_is('function_checksum_is'::name,'md5'::text), + false, + 'function_checksum_is(name,text) should fail', + 'Function function_checksum_is Checksum' +); + +SELECT * FROM check_test( + function_checksum_is('function_checksum_is'::name,'md5'::text,'test'::text), + false, + 'function_checksum_is(name,text,text) should fail', + 'test' +); + +SELECT * FROM check_test( + function_checksum_is('public'::name,'function_checksum_is'::name,'md5'::text), + false, + 'function_checksum_is(name,name,text) should fail', + 'Function public.function_checksum_is Checksum' +); + +SELECT * FROM check_test( + function_checksum_is('public'::name,'function_checksum_is'::name,'md5'::text,'test'::text), + false, + 'function_checksum_is(name,name,text,text) should fail', + 'test' +); + +-- The functions specifying parameters will be able to check their checksums + +SELECT * FROM check_test( + function_checksum_is('function_checksum_is'::name,'{"name","name[]","text"}'::name[],'c4d1078bb0ee774374a6ee54fd477117'::text), + true, + 'function_checksum_is(name,name[],text) should succeed', + 'Function function_checksum_is Checksum' +); + +SELECT * FROM check_test( + function_checksum_is('function_checksum_is'::name,'{"name","name[]","text","text"}'::name[],'00484046b6ec5512f18c1af8cfe2004f'::text,'test'::text), + true, + 'function_checksum_is(name,name[],text,text) should succeed', + 'test' +); + +SELECT * FROM check_test( + function_checksum_is('public'::name,'function_checksum_is'::name,'{"name","name[]","text"}'::name[],'c4d1078bb0ee774374a6ee54fd477117'::text), + true, + 'function_checksum_is(name,name[],text) should succeed', + 'Function public.function_checksum_is Checksum' +); + +SELECT * FROM check_test( + function_checksum_is('public'::name,'function_checksum_is'::name,'{"name","name","name[]","text","text"}'::name[],'547cc12b8f55ab74bc2a3498de01b3e5'::text,'test'::text), + true, + 'function_checksum_is(name,name,name[],text,text) should succeed', + 'test' +); + + + + /****************************************************************************/ -- Try can() function names. SELECT * FROM check_test(