• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 // Autogenerated file by gen_null_arg_tests.rb script -- DO NOT EDIT!
17 
18 #include "libabckit/include/c/abckit.h"
19 #include "libabckit/include/c/metadata_core.h"
20 #include "libabckit/include/c/extensions/arkts/metadata_arkts.h"
21 #include "libabckit/include/c/extensions/js/metadata_js.h"
22 #include "libabckit/include/c/ir_core.h"
23 #include "libabckit/include/c/isa/isa_dynamic.h"
24 #include "libabckit/include/c/isa/isa_static.h"
25 
26 #include "helpers/helpers.h"
27 #include "helpers/helpers_nullptr.h"
28 
29 #include <gtest/gtest.h>
30 
31 namespace libabckit::test {
32 
33 static auto g_apiImp = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 
35 class LibAbcKitNullptrTestsApiImpl0 : public ::testing::Test {};
36 
37 // Test: test-kind=api, api=ApiImpl::closeFile,
38 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsApiImpl0,closeFile)39 TEST_F(LibAbcKitNullptrTestsApiImpl0, closeFile)
40 {
41     helpers_nullptr::TestNullptr(g_apiImp->closeFile);
42 }
43 
44 // Test: test-kind=api, api=ApiImpl::destroyGraph,
45 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsApiImpl0,destroyGraph)46 TEST_F(LibAbcKitNullptrTestsApiImpl0, destroyGraph)
47 {
48     helpers_nullptr::TestNullptr(g_apiImp->destroyGraph);
49 }
50 
51 // Test: test-kind=api, api=ApiImpl::openAbc,
52 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsApiImpl0,openAbc)53 TEST_F(LibAbcKitNullptrTestsApiImpl0, openAbc)
54 {
55     helpers_nullptr::TestNullptr(g_apiImp->openAbc);
56 }
57 
58 // Test: test-kind=api, api=ApiImpl::writeAbc,
59 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsApiImpl0,writeAbc)60 TEST_F(LibAbcKitNullptrTestsApiImpl0, writeAbc)
61 {
62     helpers_nullptr::TestNullptr(g_apiImp->writeAbc);
63 }
64 
65 }  // namespace libabckit::test
66