We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [unit-test]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
504 views

How can I fake inet_client_addr() for unit tests in PostgreSQL?

I have a simple stored procedure whose return value depends on the value of inet_client_addr(). How can I override inet_client_addr() for the purpose of unit tests when testing my stored procedure? ...