LCOV - code coverage report
Current view: top level - src/interfaces/libpq/test - libpq_testclient.c (source / functions) Coverage Total Hit
Test: Code coverage Lines: 0.0 % 13 0
Test Date: 2026-01-26 10:56:24 Functions: 0.0 % 2 0
Legend: Lines:     hit not hit

            Line data    Source code
       1              : /*
       2              :  * libpq_testclient.c
       3              :  *              A test program for the libpq public API
       4              :  *
       5              :  * Copyright (c) 2022-2026, PostgreSQL Global Development Group
       6              :  *
       7              :  * IDENTIFICATION
       8              :  *              src/interfaces/libpq/test/libpq_testclient.c
       9              :  */
      10              : 
      11              : #include "postgres_fe.h"
      12              : 
      13              : #include "libpq-fe.h"
      14              : 
      15              : static void
      16            0 : print_ssl_library()
      17              : {
      18            0 :         const char *lib = PQsslAttribute(NULL, "library");
      19              : 
      20            0 :         if (!lib)
      21            0 :                 fprintf(stderr, "SSL is not enabled\n");
      22              :         else
      23            0 :                 printf("%s\n", lib);
      24            0 : }
      25              : 
      26              : int
      27            0 : main(int argc, char *argv[])
      28              : {
      29            0 :         if ((argc > 1) && !strcmp(argv[1], "--ssl"))
      30              :         {
      31            0 :                 print_ssl_library();
      32            0 :                 return 0;
      33              :         }
      34              : 
      35            0 :         printf("currently only --ssl is supported\n");
      36            0 :         return 1;
      37            0 : }
        

Generated by: LCOV version 2.3.2-1