LCOV - differential code coverage report
Current view: top level - contrib/bool_plperl - bool_plperl.c (source / functions) Coverage Total Hit CBC
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 100.0 % 11 11 11
Current Date: 2025-09-06 07:49:51 +0900 Functions: 100.0 % 5 5 5
Baseline: lcov-20250906-005545-baseline Branches: 100.0 % 2 2 2
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 100.0 % 1 1 1
(360..) days: 100.0 % 10 10 10
Function coverage date bins:
(30,360] days: 100.0 % 1 1 1
(360..) days: 100.0 % 4 4 4
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                 :                : 
  164 tgl@sss.pgh.pa.us           7                 :CBC           2 : PG_MODULE_MAGIC_EXT(
                                  8                 :                :                     .name = "bool_plperl",
                                  9                 :                :                     .version = PG_VERSION
                                 10                 :                : );
                                 11                 :                : 
 2010                            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.4-beta