LCOV - code coverage report
Current view: top level - src/ctlib/unittests - t0001.c (source / functions) Hit Total Coverage
Test: FreeTDS coverage Lines: 5 5 100.0 %
Date: 2025-01-18 11:50:39 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "common.h"
       2             : 
       3             : int
       4           8 : main(void)
       5             : {
       6             :         CS_CONTEXT *ctx;
       7             :         CS_CONNECTION *conn;
       8             :         CS_COMMAND *cmd;
       9           8 :         int verbose = 0;
      10             : 
      11           8 :         printf("%s: Testing login, logout\n", __FILE__);
      12             :         if (verbose) {
      13             :                 printf("Trying login\n");
      14             :         }
      15           8 :         check_call(try_ctlogin, (&ctx, &conn, &cmd, verbose));
      16             : 
      17             :         if (verbose) {
      18             :                 printf("Trying logout\n");
      19             :         }
      20           8 :         check_call(try_ctlogout, (ctx, conn, cmd, verbose));
      21             : 
      22             :         if (verbose) {
      23             :                 printf("Test succeeded\n");
      24             :         }
      25             :         return 0;
      26             : }

Generated by: LCOV version 1.13