LCOV - code coverage report
Current view: top level - stub - seccomp_stub.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 8 8
Test Date: 2026-08-12 11:05:02 Functions: 100.0 % 4 4

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : #include "seccomp.h"
      11              : 
      12            1 : int seccomp_rule_add(scmp_filter_ctx ctx, uint32_t action, int syscall, unsigned int arg_cnt, ...)
      13              : {
      14              :     (void)ctx;
      15              :     (void)action;
      16              :     (void)syscall;
      17              :     (void)arg_cnt;
      18            1 :     return 0;
      19              : }
      20              : 
      21            1 : scmp_filter_ctx seccomp_init(uint32_t def_action)
      22              : {
      23              :     (void)def_action;
      24            1 :     return nullptr;
      25              : }
      26              : 
      27            1 : int seccomp_load(const scmp_filter_ctx ctx)
      28              : {
      29              :     (void)ctx;
      30            1 :     return 0;
      31              : }
      32              : 
      33            1 : int seccomp_syscall_resolve_name(const char* name)
      34              : {
      35              :     (void)name;
      36            1 :     return 0;
      37              : }
        

Generated by: LCOV version 2.0-1