• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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_isaApiDynamicImp = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 
33 class LibAbcKitWrongCtxTestsIsaApiDynamicImpl1 : public ::testing::Test {};
34 
35 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateWideCallrange,
36 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateWideCallrange)37 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateWideCallrange)
38 {
39     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateWideCallrange);
40 }
41 
42 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateGreatereq,
43 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateGreatereq)44 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateGreatereq)
45 {
46     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateGreatereq);
47 }
48 
49 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCallarg0,
50 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCallarg0)51 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCallarg0)
52 {
53     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCallarg0);
54 }
55 
56 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateStglobalvar,
57 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateStglobalvar)58 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateStglobalvar)
59 {
60     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateStglobalvar);
61 }
62 
63 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateInc,
64 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateInc)65 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateInc)
66 {
67     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateInc);
68 }
69 
70 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateXor2,
71 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateXor2)72 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateXor2)
73 {
74     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateXor2);
75 }
76 
77 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateSetobjectwithproto,
78 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateSetobjectwithproto)79 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateSetobjectwithproto)
80 {
81     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateSetobjectwithproto);
82 }
83 
84 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCreateasyncgeneratorobj,
85 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCreateasyncgeneratorobj)86 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCreateasyncgeneratorobj)
87 {
88     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCreateasyncgeneratorobj);
89 }
90 
91 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateStownbyname,
92 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateStownbyname)93 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateStownbyname)
94 {
95     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateStownbyname);
96 }
97 
98 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateAsyncgeneratorreject,
99 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateAsyncgeneratorreject)100 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateAsyncgeneratorreject)
101 {
102     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateAsyncgeneratorreject);
103 }
104 
105 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateGetiterator,
106 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateGetiterator)107 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateGetiterator)
108 {
109     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateGetiterator);
110 }
111 
112 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateNoteq,
113 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateNoteq)114 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateNoteq)
115 {
116     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateNoteq);
117 }
118 
119 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateIf,
120 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateIf)121 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateIf)
122 {
123     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateIf);
124 }
125 
126 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateDelobjprop,
127 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateDelobjprop)128 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateDelobjprop)
129 {
130     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateDelobjprop);
131 }
132 
133 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateLdsuperbyname,
134 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateLdsuperbyname)135 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateLdsuperbyname)
136 {
137     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateLdsuperbyname);
138 }
139 
140 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCallruntimeStsendablevar,
141 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCallruntimeStsendablevar)142 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCallruntimeStsendablevar)
143 {
144     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCallruntimeStsendablevar);
145 }
146 
147 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateWideSupercallarrowrange,
148 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateWideSupercallarrowrange)149 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateWideSupercallarrowrange)
150 {
151     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateWideSupercallarrowrange);
152 }
153 
154 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateAsyncfunctionresolve,
155 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateAsyncfunctionresolve)156 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateAsyncfunctionresolve)
157 {
158     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateAsyncfunctionresolve);
159 }
160 
161 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCallruntimeNotifyconcurrentresult,
162 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCallruntimeNotifyconcurrentresult)163 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCallruntimeNotifyconcurrentresult)
164 {
165     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCallruntimeNotifyconcurrentresult);
166 }
167 
168 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCallruntimeDefinesendableclass,
169 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCallruntimeDefinesendableclass)170 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCallruntimeDefinesendableclass)
171 {
172     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCallruntimeDefinesendableclass);
173 }
174 
175 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateWideStmodulevar,
176 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateWideStmodulevar)177 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateWideStmodulevar)
178 {
179     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateWideStmodulevar);
180 }
181 
182 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateGreater,
183 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateGreater)184 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateGreater)
185 {
186     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateGreater);
187 }
188 
189 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateTrystglobalbyname,
190 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateTrystglobalbyname)191 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateTrystglobalbyname)
192 {
193     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateTrystglobalbyname);
194 }
195 
196 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateMod2,
197 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateMod2)198 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateMod2)
199 {
200     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateMod2);
201 }
202 
203 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateLesseq,
204 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateLesseq)205 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateLesseq)
206 {
207     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateLesseq);
208 }
209 
210 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCallargs2,
211 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCallargs2)212 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCallargs2)
213 {
214     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCallargs2);
215 }
216 
217 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateCallruntimeIsfalse,
218 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateCallruntimeIsfalse)219 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateCallruntimeIsfalse)
220 {
221     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateCallruntimeIsfalse);
222 }
223 
224 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateDefinefieldbyname,
225 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateDefinefieldbyname)226 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateDefinefieldbyname)
227 {
228     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateDefinefieldbyname);
229 }
230 
231 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateStownbyvaluewithnameset,
232 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1,iCreateStownbyvaluewithnameset)233 TEST_F(LibAbcKitWrongCtxTestsIsaApiDynamicImpl1, iCreateStownbyvaluewithnameset)
234 {
235     helpers_wrong_ctx::TestWrongCtx(g_isaApiDynamicImp->iCreateStownbyvaluewithnameset);
236 }
237 
238 }  // namespace libabckit::test
239