LCOV - code coverage report
Current view: top level - spdk/test/unit/lib/scsi/scsi.c - scsi_ut.c (source / functions) Hit Total Coverage
Test: Combined Lines: 12 12 100.0 %
Date: 2024-07-13 07:45:12 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*   SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  *   Copyright (C) 2016 Intel Corporation.
       3                 :            :  *   All rights reserved.
       4                 :            :  */
       5                 :            : 
       6                 :            : #include "spdk/stdinc.h"
       7                 :            : 
       8                 :            : #include "spdk/scsi.h"
       9                 :            : 
      10                 :            : #include "spdk_internal/cunit.h"
      11                 :            : 
      12                 :            : #include "scsi/scsi.c"
      13                 :            : #include "common/lib/test_env.c"
      14                 :            : 
      15                 :            : static void
      16                 :          6 : scsi_init(void)
      17                 :            : {
      18                 :            :         int rc;
      19                 :            : 
      20                 :          6 :         rc = spdk_scsi_init();
      21                 :          6 :         CU_ASSERT_EQUAL(rc, 0);
      22                 :          6 : }
      23                 :            : 
      24                 :            : int
      25                 :          6 : main(int argc, char **argv)
      26                 :            : {
      27                 :          6 :         CU_pSuite       suite = NULL;
      28                 :            :         unsigned int    num_failures;
      29                 :            : 
      30                 :          6 :         CU_initialize_registry();
      31                 :            : 
      32                 :          6 :         suite = CU_add_suite("scsi_suite", NULL, NULL);
      33                 :            : 
      34                 :          6 :         CU_ADD_TEST(suite, scsi_init);
      35                 :            : 
      36                 :          6 :         num_failures = spdk_ut_run_tests(argc, argv, NULL);
      37                 :          6 :         CU_cleanup_registry();
      38                 :          6 :         return num_failures;
      39                 :            : }

Generated by: LCOV version 1.14