On Mon, May 19, 2025 at 9:09 AM jian he <jian(dot)universality(at)gmail(dot)com> wrote:
>
> hi.
>
> somehow, I accidentally saw the TODOs (commits [3]) on jsonb.c and json.c
> for functions: to_json_is_immutable and to_jsonb_is_immutable.
> The attached patch is to finalize these TODOs.
>
> per coverage [1], [2], there was zero coverage for these two functions.
> so I also added extensive tests on it.
>
I didn't include "utils/rel.h", so v1-0001 won't compile.
The tests were overly verbose,
so I removed some unnecessary ones to simplify them.