• 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 wrong_ctx_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 
24 #include "helpers/helpers.h"
25 #include "helpers/helpers_wrong_ctx.h"
26 
27 #include <gtest/gtest.h>
28 
29 namespace libabckit::test {
30 
31 static auto g_isaApiStaticImp = AbckitGetIsaApiStaticImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 
33 class LibAbcKitWrongCtxTestsIsaApiStaticImpl0 : public ::testing::Test {};
34 
35 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateXorI,
36 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateXorI)37 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateXorI)
38 {
39     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateXorI);
40 }
41 
42 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateCheckCast,
43 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateCheckCast)44 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateCheckCast)
45 {
46     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateCheckCast);
47 }
48 
49 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateIsUndefined,
50 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateIsUndefined)51 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateIsUndefined)
52 {
53     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateIsUndefined);
54 }
55 
56 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateDivI,
57 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateDivI)58 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateDivI)
59 {
60     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateDivI);
61 }
62 
63 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateInitObject,
64 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateInitObject)65 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateInitObject)
66 {
67     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateInitObject);
68 }
69 
70 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateNewObject,
71 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateNewObject)72 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateNewObject)
73 {
74     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateNewObject);
75 }
76 
77 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateShlI,
78 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateShlI)79 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateShlI)
80 {
81     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateShlI);
82 }
83 
84 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateXor,
85 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateXor)86 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateXor)
87 {
88     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateXor);
89 }
90 
91 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateCallVirtual,
92 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateCallVirtual)93 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateCallVirtual)
94 {
95     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateCallVirtual);
96 }
97 
98 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateCast,
99 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateCast)100 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateCast)
101 {
102     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateCast);
103 }
104 
105 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateMod,
106 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateMod)107 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateMod)
108 {
109     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateMod);
110 }
111 
112 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateMulI,
113 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateMulI)114 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateMulI)
115 {
116     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateMulI);
117 }
118 
119 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateShr,
120 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateShr)121 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateShr)
122 {
123     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateShr);
124 }
125 
126 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateAdd,
127 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateAdd)128 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateAdd)
129 {
130     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateAdd);
131 }
132 
133 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateNot,
134 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateNot)135 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateNot)
136 {
137     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateNot);
138 }
139 
140 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateIsInstance,
141 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateIsInstance)142 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateIsInstance)
143 {
144     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateIsInstance);
145 }
146 
147 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateAShr,
148 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateAShr)149 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateAShr)
150 {
151     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateAShr);
152 }
153 
154 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateStoreArray,
155 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateStoreArray)156 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateStoreArray)
157 {
158     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateStoreArray);
159 }
160 
161 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateAddI,
162 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateAddI)163 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateAddI)
164 {
165     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateAddI);
166 }
167 
168 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateShrI,
169 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateShrI)170 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateShrI)
171 {
172     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateShrI);
173 }
174 
175 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateCmp,
176 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateCmp)177 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateCmp)
178 {
179     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateCmp);
180 }
181 
182 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateDiv,
183 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateDiv)184 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateDiv)
185 {
186     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateDiv);
187 }
188 
189 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateCallStatic,
190 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateCallStatic)191 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateCallStatic)
192 {
193     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateCallStatic);
194 }
195 
196 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateMul,
197 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateMul)198 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateMul)
199 {
200     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateMul);
201 }
202 
203 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateModI,
204 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateModI)205 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateModI)
206 {
207     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateModI);
208 }
209 
210 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateNewArray,
211 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateNewArray)212 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateNewArray)
213 {
214     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateNewArray);
215 }
216 
217 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateOr,
218 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateOr)219 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateOr)
220 {
221     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateOr);
222 }
223 
224 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateAndI,
225 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateAndI)226 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateAndI)
227 {
228     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateAndI);
229 }
230 
231 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateAnd,
232 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateAnd)233 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateAnd)
234 {
235     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateAnd);
236 }
237 
238 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateLenArray,
239 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateLenArray)240 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateLenArray)
241 {
242     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateLenArray);
243 }
244 
245 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateThrow,
246 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateThrow)247 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateThrow)
248 {
249     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateThrow);
250 }
251 
252 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateNeg,
253 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateNeg)254 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateNeg)
255 {
256     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateNeg);
257 }
258 
259 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateAShrI,
260 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateAShrI)261 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateAShrI)
262 {
263     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateAShrI);
264 }
265 
266 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateLoadArray,
267 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateLoadArray)268 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateLoadArray)
269 {
270     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateLoadArray);
271 }
272 
273 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateReturn,
274 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateReturn)275 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateReturn)
276 {
277     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateReturn);
278 }
279 
280 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateEquals,
281 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateEquals)282 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateEquals)
283 {
284     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateEquals);
285 }
286 
287 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateStrictEquals,
288 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateStrictEquals)289 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateStrictEquals)
290 {
291     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateStrictEquals);
292 }
293 
294 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateSub,
295 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateSub)296 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateSub)
297 {
298     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateSub);
299 }
300 
301 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateSubI,
302 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateSubI)303 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateSubI)
304 {
305     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateSubI);
306 }
307 
308 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateOrI,
309 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateOrI)310 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateOrI)
311 {
312     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateOrI);
313 }
314 
315 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateIf,
316 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateIf)317 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateIf)
318 {
319     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateIf);
320 }
321 
322 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateStoreArrayWide,
323 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateStoreArrayWide)324 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateStoreArrayWide)
325 {
326     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateStoreArrayWide);
327 }
328 
329 // Test: test-kind=api, api=IsaApiStaticImpl::iCreateShl,
330 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0,iCreateShl)331 TEST_F(LibAbcKitWrongCtxTestsIsaApiStaticImpl0, iCreateShl)
332 {
333     helpers_wrong_ctx::TestWrongCtx(g_isaApiStaticImp->iCreateShl);
334 }
335 
336 }  // namespace libabckit::test
337