• 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_modifyApiImp = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 
35 class LibAbcKitNullptrTestsModifyApiImpl0 : public ::testing::Test {};
36 
37 // Test: test-kind=api, api=ModifyApiImpl::createLiteralArray,
38 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralArray)39 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralArray)
40 {
41     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralArray);
42 }
43 
44 // Test: test-kind=api, api=ModifyApiImpl::createLiteralArrayValue,
45 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralArrayValue)46 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralArrayValue)
47 {
48     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralArrayValue);
49 }
50 
51 // Test: test-kind=api, api=ModifyApiImpl::createLiteralBool,
52 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralBool)53 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralBool)
54 {
55     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralBool);
56 }
57 
58 // Test: test-kind=api, api=ModifyApiImpl::createLiteralDouble,
59 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralDouble)60 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralDouble)
61 {
62     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralDouble);
63 }
64 
65 // Test: test-kind=api, api=ModifyApiImpl::createLiteralFloat,
66 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralFloat)67 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralFloat)
68 {
69     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralFloat);
70 }
71 
72 // Test: test-kind=api, api=ModifyApiImpl::createLiteralLiteralArray,
73 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralLiteralArray)74 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralLiteralArray)
75 {
76     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralLiteralArray);
77 }
78 
79 // Test: test-kind=api, api=ModifyApiImpl::createLiteralMethod,
80 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralMethod)81 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralMethod)
82 {
83     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralMethod);
84 }
85 
86 // Test: test-kind=api, api=ModifyApiImpl::createLiteralMethodAffiliate,
87 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralMethodAffiliate)88 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralMethodAffiliate)
89 {
90     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralMethodAffiliate);
91 }
92 
93 // Test: test-kind=api, api=ModifyApiImpl::createLiteralString,
94 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralString)95 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralString)
96 {
97     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralString);
98 }
99 
100 // Test: test-kind=api, api=ModifyApiImpl::createLiteralU16,
101 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralU16)102 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralU16)
103 {
104     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralU16);
105 }
106 
107 // Test: test-kind=api, api=ModifyApiImpl::createLiteralU32,
108 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralU32)109 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralU32)
110 {
111     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralU32);
112 }
113 
114 // Test: test-kind=api, api=ModifyApiImpl::createLiteralU64,
115 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralU64)116 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralU64)
117 {
118     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralU64);
119 }
120 
121 // Test: test-kind=api, api=ModifyApiImpl::createLiteralU8,
122 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createLiteralU8)123 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createLiteralU8)
124 {
125     helpers_nullptr::TestNullptr(g_modifyApiImp->createLiteralU8);
126 }
127 
128 // Test: test-kind=api, api=ModifyApiImpl::createReferenceType,
129 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createReferenceType)130 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createReferenceType)
131 {
132     helpers_nullptr::TestNullptr(g_modifyApiImp->createReferenceType);
133 }
134 
135 // Test: test-kind=api, api=ModifyApiImpl::createString,
136 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createString)137 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createString)
138 {
139     helpers_nullptr::TestNullptr(g_modifyApiImp->createString);
140 }
141 
142 // Test: test-kind=api, api=ModifyApiImpl::createType,
143 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createType)144 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createType)
145 {
146     helpers_nullptr::TestNullptr(g_modifyApiImp->createType);
147 }
148 
149 // Test: test-kind=api, api=ModifyApiImpl::createValueDouble,
150 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createValueDouble)151 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createValueDouble)
152 {
153     helpers_nullptr::TestNullptr(g_modifyApiImp->createValueDouble);
154 }
155 
156 // Test: test-kind=api, api=ModifyApiImpl::createValueString,
157 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createValueString)158 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createValueString)
159 {
160     helpers_nullptr::TestNullptr(g_modifyApiImp->createValueString);
161 }
162 
163 // Test: test-kind=api, api=ModifyApiImpl::createValueU1,
164 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,createValueU1)165 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, createValueU1)
166 {
167     helpers_nullptr::TestNullptr(g_modifyApiImp->createValueU1);
168 }
169 
170 // Test: test-kind=api, api=ModifyApiImpl::functionSetGraph,
171 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsModifyApiImpl0,functionSetGraph)172 TEST_F(LibAbcKitNullptrTestsModifyApiImpl0, functionSetGraph)
173 {
174     helpers_nullptr::TestNullptr(g_modifyApiImp->functionSetGraph);
175 }
176 
177 }  // namespace libabckit::test
178