LCOV - code coverage report
Current view: top level - spdk/test/common/lib/bdev - common_stubs.h (source / functions) Hit Total Coverage
Test: Combined Lines: 2 9 22.2 %
Date: 2024-11-20 07:56:16 Functions: 2 15 13.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 24 12.5 %

           Branch data     Line data    Source code
       1                 :            : /*   SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  *   Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
       3                 :            :  */
       4                 :            : 
       5                 :            : #include "spdk_internal/mock.h"
       6                 :            : 
       7   [ -  +  -  + ]:       1008 : DEFINE_STUB(spdk_notify_send, uint64_t, (const char *type, const char *ctx), 0);
       8   [ -  +  #  # ]:        520 : DEFINE_STUB(spdk_notify_type_register, struct spdk_notify_type *, (const char *type), NULL);
       9   [ #  #  #  # ]:          0 : DEFINE_STUB(spdk_memory_domain_get_dma_device_id, const char *, (struct spdk_memory_domain *domain),
      10                 :            :             "test_domain");
      11   [ #  #  #  # ]:          0 : DEFINE_STUB(spdk_memory_domain_get_dma_device_type, enum spdk_dma_device_type,
      12                 :            :             (struct spdk_memory_domain *domain), 0);
      13                 :          0 : DEFINE_STUB_V(spdk_accel_sequence_finish,
      14                 :            :               (struct spdk_accel_sequence *seq, spdk_accel_completion_cb cb_fn, void *cb_arg));
      15                 :          0 : DEFINE_STUB_V(spdk_accel_sequence_abort, (struct spdk_accel_sequence *seq));
      16                 :          0 : DEFINE_STUB_V(spdk_accel_sequence_reverse, (struct spdk_accel_sequence *seq));
      17   [ #  #  #  # ]:          0 : DEFINE_STUB(spdk_accel_append_copy, int,
      18                 :            :             (struct spdk_accel_sequence **seq, struct spdk_io_channel *ch, struct iovec *dst_iovs,
      19                 :            :              uint32_t dst_iovcnt, struct spdk_memory_domain *dst_domain, void *dst_domain_ctx,
      20                 :            :              struct iovec *src_iovs, uint32_t src_iovcnt, struct spdk_memory_domain *src_domain,
      21                 :            :              void *src_domain_ctx, spdk_accel_step_cb cb_fn, void *cb_arg), 0);
      22   [ #  #  #  # ]:          0 : DEFINE_STUB(spdk_accel_get_memory_domain, struct spdk_memory_domain *, (void), NULL);

Generated by: LCOV version 1.15