]> granicus.if.org Git - postgresql/commit
Improve expression evaluation test coverage.
authorAndres Freund <andres@anarazel.de>
Sat, 11 Mar 2017 23:36:50 +0000 (15:36 -0800)
committerAndres Freund <andres@anarazel.de>
Sat, 11 Mar 2017 23:41:34 +0000 (15:41 -0800)
commitce38949ba23ab311f274aa4196be09d18d30e5a6
treebb8f73043ba11c5bf30c7e5d9fcae21084903cf4
parentcd1e23e93bc12b7d084dc2acf9f80e9ea1f1e6de
Improve expression evaluation test coverage.

Upcoming patches are revamping expression evaluation significantly. It
therefore seems prudent to try to ensure that the coverage of the
existing evaluation code is high.

This commit adds coverage for the cases that can reasonably be
tested. There's still a bunch of unreachable error messages and such,
but otherwise this achieves nearly full regression test coverage (with
the exception of the unused GetAttributeByNum/GetAttributeByName).

Author: Andres Freund
Discussion: https://postgr.es/m/20170310194021.ek4bs4bl2khxkmll@alap3.anarazel.de
17 files changed:
src/backend/executor/execQual.c
src/test/regress/expected/arrays.out
src/test/regress/expected/boolean.out
src/test/regress/expected/case.out
src/test/regress/expected/expressions.out [new file with mode: 0644]
src/test/regress/expected/inherit.out
src/test/regress/expected/privileges.out
src/test/regress/expected/rowtypes.out
src/test/regress/parallel_schedule
src/test/regress/serial_schedule
src/test/regress/sql/arrays.sql
src/test/regress/sql/boolean.sql
src/test/regress/sql/case.sql
src/test/regress/sql/expressions.sql [new file with mode: 0644]
src/test/regress/sql/inherit.sql
src/test/regress/sql/privileges.sql
src/test/regress/sql/rowtypes.sql