LCOV - differential code coverage report
Current view: top level - contrib/bool_plperl - bool_plperl.c (source / functions) Coverage Total Hit CBC
Current: d36b728949bf4e37ada1cd23e0f2aaa94f609a70 vs 52e118fe2f7e3381bdaa479816a7f72eda2ae517 Lines: 100.0 % 11 11 11
Current Date: 2026-06-29 16:15:13 +0200 Functions: 100.0 % 5 5 5
Baseline: lcov-20260630-baseline Branches: 100.0 % 2 2 2
Baseline Date: 2026-06-29 13:01:57 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(360..) days: 100.0 % 11 11 11
Function coverage date bins:
(360..) days: 100.0 % 5 5 5
Branch coverage date bins:
(360..) days: 100.0 % 2 2 2

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : #include "postgres.h"
                                  2                 :                : 
                                  3                 :                : #include "fmgr.h"
                                  4                 :                : #include "plperl.h"
                                  5                 :                : 
                                  6                 :                : 
  461 tgl@sss.pgh.pa.us           7                 :CBC           2 : PG_MODULE_MAGIC_EXT(
                                  8                 :                :                     .name = "bool_plperl",
                                  9                 :                :                     .version = PG_VERSION
                                 10                 :                : );
                                 11                 :                : 
 2307                            12                 :              4 : PG_FUNCTION_INFO_V1(bool_to_plperl);
                                 13                 :                : 
                                 14                 :                : Datum
                                 15                 :              8 : bool_to_plperl(PG_FUNCTION_ARGS)
                                 16                 :                : {
                                 17                 :              8 :     dTHX;
                                 18                 :              8 :     bool        in = PG_GETARG_BOOL(0);
                                 19                 :                : 
                                 20         [ +  + ]:              8 :     return PointerGetDatum(in ? &PL_sv_yes : &PL_sv_no);
                                 21                 :                : }
                                 22                 :                : 
                                 23                 :                : 
                                 24                 :              4 : PG_FUNCTION_INFO_V1(plperl_to_bool);
                                 25                 :                : 
                                 26                 :                : Datum
                                 27                 :              8 : plperl_to_bool(PG_FUNCTION_ARGS)
                                 28                 :                : {
                                 29                 :              8 :     dTHX;
                                 30                 :              8 :     SV         *in = (SV *) PG_GETARG_POINTER(0);
                                 31                 :                : 
                                 32                 :              8 :     PG_RETURN_BOOL(SvTRUE(in));
                                 33                 :                : }
        

Generated by: LCOV version 2.0-1