Re: int4->bool test coverage - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: int4->bool test coverage
Date
Msg-id ZYT467XuR3xsMS7K@paquier.xyz
Whole thread Raw
In response to int4->bool test coverage  (Christoph Berg <myon@debian.org>)
Responses Re: int4->bool test coverage
List pgsql-hackers
On Thu, Dec 21, 2023 at 11:56:22AM +0100, Christoph Berg wrote:
> The first cast is the int4_bool function, but it isn't covered by the
> regression tests at all. The attached patch adds tests.

I don't see why not.

Interesting that there are a few more of these in int.c, like int2up,
int4inc, int2smaller, int{2,4}shr, int{2,4}not, etc.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: ci: Build standalone INSTALL file
Next
From: Amit Kapila
Date:
Subject: Re: Track in pg_replication_slots the reason why slots conflict?