LCOV - code coverage report
Current view: top level - src/interfaces/ecpg/test/compat_informix - charfuncs.pgc (source / functions) Hit Total Coverage
Test: PostgreSQL 13devel Lines: 18 18 100.0 %
Date: 2019-11-13 22:07:24 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include <stdio.h>
       2             : #include <stdlib.h>
       3             : #include <sqltypes.h>
       4             : 
       5           4 : int main(void)
       6             : {
       7           4 :     char t1[] = "abc  def  ghi  ";
       8             :               /* 123456789012345 */
       9             :     char buf[50];
      10             :     int k;
      11             : 
      12           4 :     printf("t1: _%s_\n", t1);
      13           4 :     rupshift(t1);
      14           4 :     printf("t1: _%s_\n", t1);
      15             : 
      16           4 :     k = 2;
      17           4 :     ldchar(t1, k, buf);
      18           4 :     printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
      19           4 :     k = 5;
      20           4 :     ldchar(t1, k, buf);
      21           4 :     printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
      22           4 :     k = 9;
      23           4 :     ldchar(t1, k, buf);
      24           4 :     printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
      25           4 :     k = 15;
      26           4 :     ldchar(t1, k, buf);
      27           4 :     printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
      28             : 
      29             : 
      30           4 :     return 0;
      31             : }

Generated by: LCOV version 1.13