]> git.ipfire.org Git - thirdparty/postgresql.git/commit
injection_points: Add tests for name limits
authorMichael Paquier <michael@paquier.xyz>
Wed, 12 Nov 2025 01:32:50 +0000 (10:32 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 12 Nov 2025 01:32:50 +0000 (10:32 +0900)
commitfb9bff04542138d7217e79fc5e1bb9d5fabd9026
tree6c689385fcc08296f558f2939a22532e752bb124
parent6e1535308c843dc7413a02c83a41f70449c58fb3
injection_points: Add tests for name limits

The maximum limits for point name, library name, function name and
private area size were not kept track of in the tests.  The new function
introduced in 16a2f706951e gives a way to trigger them.  This is not
critical but cheap to cover.

While on it, this commit cleans up some of the tests introduced by
16a2f706951e for NULL inputs by using more consistent argument values.
The coverage does not change, but it makes the whole less confusing with
argument values that are correct based their position in the SQL
function called.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com>
Discussion: https://postgr.es/m/aRE7zhu6wOA29gFf@paquier.xyz
src/test/modules/injection_points/expected/injection_points.out
src/test/modules/injection_points/sql/injection_points.sql