LCOV - differential code coverage report
Current view: top level - src/interfaces/ecpg/test/sql - insupd.pgc (source / functions) Coverage Total Hit UBC CBC
Current: Differential Code Coverage 16@8cea358b128 vs 17@8cea358b128 Lines: 100.0 % 20 20 20
Current Date: 2024-04-14 14:21:10 Functions: 100.0 % 1 1 1
Baseline: 16@8cea358b128 Branches: 50.0 % 36 18 18 18
Baseline Date: 2024-04-14 14:21:09 Line coverage date bins:
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed (240..) days: 100.0 % 20 20 20
Function coverage date bins:
(240..) days: 100.0 % 1 1 1
Branch coverage date bins:
(240..) days: 50.0 % 36 18 18 18

 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                 :                : 
 5443 meskes@postgresql.or        7                 :CBC           1 : int main() {
                                  8                 :                :   EXEC SQL BEGIN DECLARE SECTION;
                                  9                 :                :     int i1[3], i2[3], i3[3], i4;
                                 10                 :                :   EXEC SQL END DECLARE SECTION;
                                 11                 :                : 
 6433                            12                 :              1 :   ECPGdebug(1, stderr);
                                 13                 :              1 :   EXEC SQL CONNECT TO REGRESSDB1;
                                 14                 :                : 
                                 15                 :                :   EXEC SQL WHENEVER SQLWARNING SQLPRINT;
                                 16                 :                :   EXEC SQL WHENEVER SQLERROR SQLPRINT;
                                 17                 :                : 
 6088                            18                 :              1 :   EXEC SQL CREATE TABLE insupd_test(a int, b int);
 6433                            19   [ -  +  -  + ]:              1 : 
 6088                            20                 :              1 :   EXEC SQL INSERT INTO insupd_test (a,b) values (1, 1);
                                 21   [ -  +  -  + ]:              1 :   EXEC SQL INSERT INTO insupd_test (a,b) values (2, 2);
 5063                            22   [ -  +  -  + ]:              1 :   EXEC SQL INSERT INTO insupd_test (a,b) values (3, 3) returning a into :i4;
 6433                            23   [ -  +  -  + ]:              1 : 
 5063                            24                 :              1 :   EXEC SQL UPDATE insupd_test set a=a+1 returning a into :i3;
 6088                            25   [ -  +  -  + ]:              1 :   EXEC SQL UPDATE insupd_test set (a,b)=(5,5) where a = 4;
                                 26   [ -  +  -  + ]:              1 :   EXEC SQL UPDATE insupd_test set a=4 where a=3;;
 6433                            27   [ -  +  -  + ]:              1 : 
 6088                            28                 :              1 :   EXEC SQL SELECT a,b into :i1,:i2 from insupd_test order by a;
 6433                            29   [ -  +  -  + ]:              1 : 
 5063                            30                 :              1 :   printf("changes\n%d %d %d %d\n", i3[0], i3[1], i3[2], i4);
 6433                            31                 :              1 :   printf("test\na b\n%d %d\n%d %d\n%d %d\n", i1[0], i2[0], i1[1], i2[1], i1[2], i2[2]);
                                 32                 :                : 
                                 33                 :              1 :   EXEC SQL DISCONNECT ALL;
                                 34   [ -  +  -  + ]:              1 : 
                                 35                 :              1 :   return 0;
                                 36                 :                : }
        

Generated by: LCOV version 2.1-beta2-3-g6141622