LCOV - differential code coverage report
Current view: top level - src/interfaces/ecpg/test/sql - twophase.pgc (source / functions) Coverage Total Hit UBC CBC
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 100.0 % 31 31 31
Current Date: 2025-09-06 07:49:51 +0900 Functions: 100.0 % 1 1 1
Baseline: lcov-20250907-010129-baseline Branches: 50.0 % 20 10 10 10
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(360..) days: 100.0 % 31 31 31
Function coverage date bins:
(360..) days: 100.0 % 1 1 1
Branch coverage date bins:
(360..) days: 50.0 % 20 10 10 10

 Age         Owner                    Branch data    TLA  Line data    Source code
                                  1                 :                : #include <stdio.h>
                                  2                 :                : #include <stdlib.h>
                                  3                 :                : #include <string.h>
                                  4                 :                : 
                                  5                 :                : exec sql include ../regression;
                                  6                 :                : 
                                  7                 :                : exec sql whenever sqlerror sqlprint;
                                  8                 :                : 
 3100 meskes@postgresql.or        9                 :CBC           1 : int main(void)
                                 10                 :                : {
                                 11                 :                :     char msg[128];
                                 12                 :                : 
                                 13                 :              1 :     ECPGdebug(1, stderr);
                                 14                 :                : 
                                 15                 :              1 :     strcpy(msg, "connect");
                                 16                 :              1 :     exec sql connect to REGRESSDB1;
                                 17         [ -  + ]:              1 :     exec sql set autocommit to off;
                                 18         [ -  + ]:              1 : 
                                 19                 :              1 :     strcpy(msg, "create");
                                 20                 :              1 :     exec sql create table t1(c int);
                                 21         [ -  + ]:              1 : 
                                 22                 :              1 :     strcpy(msg, "commit");
                                 23                 :              1 :     exec sql commit;
                                 24         [ -  + ]:              1 : 
                                 25                 :              1 :     strcpy(msg, "begin");
                                 26                 :              1 :     exec sql begin;
                                 27         [ -  + ]:              1 : 
                                 28                 :              1 :     strcpy(msg, "insert");
                                 29                 :              1 :     exec sql insert into t1 values(1);
                                 30         [ -  + ]:              1 : 
                                 31                 :              1 :     strcpy(msg, "prepare transaction");
  496 michael@paquier.xyz        32                 :              1 :     exec sql prepare transaction 'ecpg_twophase';
 3100 meskes@postgresql.or       33         [ -  + ]:              1 : 
                                 34                 :              1 :     strcpy(msg, "commit prepared");
  496 michael@paquier.xyz        35                 :              1 :     exec sql commit prepared 'ecpg_twophase';
 3100 meskes@postgresql.or       36         [ -  + ]:              1 : 
                                 37                 :              1 :     strcpy(msg, "drop");
                                 38                 :              1 :     exec sql drop table t1;
                                 39         [ -  + ]:              1 : 
                                 40                 :              1 :     strcpy(msg, "disconnect");
                                 41                 :              1 :     exec sql disconnect current;
                                 42         [ -  + ]:              1 : 
 2943 peter_e@gmx.net            43                 :              1 :     return 0;
                                 44                 :                : }
        

Generated by: LCOV version 2.4-beta