]> git.ipfire.org Git - thirdparty/postgresql.git/commit
oauth: Add unit tests for multiplexer handling
authorJacob Champion <jchampion@postgresql.org>
Fri, 8 Aug 2025 15:45:01 +0000 (08:45 -0700)
committerJacob Champion <jchampion@postgresql.org>
Fri, 8 Aug 2025 15:45:01 +0000 (08:45 -0700)
commit1443b6c0eaa2b464affc0c3aacb3c3bf09efcd6d
tree1f4fd0916ce1e956ef0c6b43c60d0da3f1153d9a
parent3e311664e4974ea0eef708d54256aacbb0239c95
oauth: Add unit tests for multiplexer handling

To better record the internal behaviors of oauth-curl.c, add a unit test
suite for the socket and timer handling code. This is all based on TAP
and driven by our existing Test::More infrastructure.

Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/CAOYmi+nDZxJHaWj9_jRSyf8uMToCADAmOfJEggsKW-kY7aUwHA@mail.gmail.com
src/interfaces/libpq-oauth/Makefile
src/interfaces/libpq-oauth/meson.build
src/interfaces/libpq-oauth/t/001_oauth.pl [new file with mode: 0644]
src/interfaces/libpq-oauth/test-oauth-curl.c [new file with mode: 0644]