LCOV - differential code coverage report
Current view: top level - src/backend/nodes - value.c (source / functions) Coverage Total Hit UBC CBC
Current: Differential Code Coverage HEAD vs 15 Lines: 80.0 % 20 16 4 16
Current Date: 2023-04-08 15:15:32 Functions: 80.0 % 5 4 1 4
Baseline: 15
Baseline Date: 2023-04-08 15:09:40
Legend: Lines: hit not hit

           TLA  Line data    Source code
       1                 : /*-------------------------------------------------------------------------
       2                 :  *
       3                 :  * value.c
       4                 :  *    implementation of value nodes
       5                 :  *
       6                 :  *
       7                 :  * Copyright (c) 2003-2023, PostgreSQL Global Development Group
       8                 :  *
       9                 :  *
      10                 :  * IDENTIFICATION
      11                 :  *    src/backend/nodes/value.c
      12                 :  *
      13                 :  *-------------------------------------------------------------------------
      14                 :  */
      15                 : #include "postgres.h"
      16                 : 
      17                 : #include "nodes/value.h"
      18                 : 
      19                 : /*
      20                 :  *  makeInteger
      21                 :  */
      22                 : Integer *
      23 CBC       33154 : makeInteger(int i)
      24                 : {
      25           33154 :     Integer    *v = makeNode(Integer);
      26                 : 
      27           33154 :     v->ival = i;
      28           33154 :     return v;
      29                 : }
      30                 : 
      31                 : /*
      32                 :  *  makeFloat
      33                 :  *
      34                 :  * Caller is responsible for passing a palloc'd string.
      35                 :  */
      36                 : Float *
      37             194 : makeFloat(char *numericStr)
      38                 : {
      39             194 :     Float      *v = makeNode(Float);
      40                 : 
      41             194 :     v->fval = numericStr;
      42             194 :     return v;
      43                 : }
      44                 : 
      45                 : /*
      46                 :  *  makeBoolean
      47                 :  */
      48                 : Boolean *
      49           26973 : makeBoolean(bool val)
      50                 : {
      51           26973 :     Boolean    *v = makeNode(Boolean);
      52                 : 
      53           26973 :     v->boolval = val;
      54           26973 :     return v;
      55                 : }
      56                 : 
      57                 : /*
      58                 :  *  makeString
      59                 :  *
      60                 :  * Caller is responsible for passing a palloc'd string.
      61                 :  */
      62                 : String *
      63        16839625 : makeString(char *str)
      64                 : {
      65        16839625 :     String     *v = makeNode(String);
      66                 : 
      67        16839625 :     v->sval = str;
      68        16839625 :     return v;
      69                 : }
      70                 : 
      71                 : /*
      72                 :  *  makeBitString
      73                 :  *
      74                 :  * Caller is responsible for passing a palloc'd string.
      75                 :  */
      76                 : BitString *
      77 UBC           0 : makeBitString(char *str)
      78                 : {
      79               0 :     BitString  *v = makeNode(BitString);
      80                 : 
      81               0 :     v->bsval = str;
      82               0 :     return v;
      83                 : }
        

Generated by: LCOV version v1.16-55-g56c0a2a