• 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_arktsInspectApiImp = AbckitGetArktsInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 
33 class LibAbcKitWrongCtxTestsArktsInspectApiImpl0 : public ::testing::Test {};
34 
35 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsClassToCoreClass,
36 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsClassToCoreClass)37 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsClassToCoreClass)
38 {
39     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsClassToCoreClass);
40 }
41 
42 // Test: test-kind=api, api=ArktsInspectApiImpl::coreAnnotationToArktsAnnotation,
43 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreAnnotationToArktsAnnotation)44 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreAnnotationToArktsAnnotation)
45 {
46     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreAnnotationToArktsAnnotation);
47 }
48 
49 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsModuleToCoreModule,
50 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsModuleToCoreModule)51 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsModuleToCoreModule)
52 {
53     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsModuleToCoreModule);
54 }
55 
56 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsAnnotationInterfaceFieldToCoreAnnotationInterfaceField,
57 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsAnnotationInterfaceFieldToCoreAnnotationInterfaceField)58 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsAnnotationInterfaceFieldToCoreAnnotationInterfaceField)
59 {
60     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsAnnotationInterfaceFieldToCoreAnnotationInterfaceField);
61 }
62 
63 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsFunctionToCoreFunction,
64 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsFunctionToCoreFunction)65 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsFunctionToCoreFunction)
66 {
67     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsFunctionToCoreFunction);
68 }
69 
70 // Test: test-kind=api, api=ArktsInspectApiImpl::coreExportDescriptorToArktsExportDescriptor,
71 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreExportDescriptorToArktsExportDescriptor)72 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreExportDescriptorToArktsExportDescriptor)
73 {
74     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreExportDescriptorToArktsExportDescriptor);
75 }
76 
77 // Test: test-kind=api, api=ArktsInspectApiImpl::coreNamespaceToArktsNamespace,
78 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreNamespaceToArktsNamespace)79 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreNamespaceToArktsNamespace)
80 {
81     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreNamespaceToArktsNamespace);
82 }
83 
84 // Test: test-kind=api, api=ArktsInspectApiImpl::coreImportDescriptorToArktsImportDescriptor,
85 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreImportDescriptorToArktsImportDescriptor)86 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreImportDescriptorToArktsImportDescriptor)
87 {
88     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreImportDescriptorToArktsImportDescriptor);
89 }
90 
91 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsImportDescriptorToCoreImportDescriptor,
92 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsImportDescriptorToCoreImportDescriptor)93 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsImportDescriptorToCoreImportDescriptor)
94 {
95     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsImportDescriptorToCoreImportDescriptor);
96 }
97 
98 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsAnnotationElementToCoreAnnotationElement,
99 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsAnnotationElementToCoreAnnotationElement)100 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsAnnotationElementToCoreAnnotationElement)
101 {
102     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsAnnotationElementToCoreAnnotationElement);
103 }
104 
105 // Test: test-kind=api, api=ArktsInspectApiImpl::coreModuleToArktsModule,
106 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreModuleToArktsModule)107 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreModuleToArktsModule)
108 {
109     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreModuleToArktsModule);
110 }
111 
112 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsAnnotationInterfaceToCoreAnnotationInterface,
113 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsAnnotationInterfaceToCoreAnnotationInterface)114 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsAnnotationInterfaceToCoreAnnotationInterface)
115 {
116     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsAnnotationInterfaceToCoreAnnotationInterface);
117 }
118 
119 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsNamespaceToCoreNamespace,
120 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsNamespaceToCoreNamespace)121 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsNamespaceToCoreNamespace)
122 {
123     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsNamespaceToCoreNamespace);
124 }
125 
126 // Test: test-kind=api, api=ArktsInspectApiImpl::coreClassToArktsClass,
127 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreClassToArktsClass)128 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreClassToArktsClass)
129 {
130     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreClassToArktsClass);
131 }
132 
133 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsExportDescriptorToCoreExportDescriptor,
134 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsExportDescriptorToCoreExportDescriptor)135 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsExportDescriptorToCoreExportDescriptor)
136 {
137     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsExportDescriptorToCoreExportDescriptor);
138 }
139 
140 // Test: test-kind=api, api=ArktsInspectApiImpl::coreAnnotationInterfaceFieldToArktsAnnotationInterfaceField,
141 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreAnnotationInterfaceFieldToArktsAnnotationInterfaceField)142 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreAnnotationInterfaceFieldToArktsAnnotationInterfaceField)
143 {
144     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreAnnotationInterfaceFieldToArktsAnnotationInterfaceField);
145 }
146 
147 // Test: test-kind=api, api=ArktsInspectApiImpl::coreAnnotationInterfaceToArktsAnnotationInterface,
148 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreAnnotationInterfaceToArktsAnnotationInterface)149 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreAnnotationInterfaceToArktsAnnotationInterface)
150 {
151     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreAnnotationInterfaceToArktsAnnotationInterface);
152 }
153 
154 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsV1NamespaceGetConstructor,
155 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsV1NamespaceGetConstructor)156 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsV1NamespaceGetConstructor)
157 {
158     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsV1NamespaceGetConstructor);
159 }
160 
161 // Test: test-kind=api, api=ArktsInspectApiImpl::arktsAnnotationToCoreAnnotation,
162 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,arktsAnnotationToCoreAnnotation)163 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, arktsAnnotationToCoreAnnotation)
164 {
165     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->arktsAnnotationToCoreAnnotation);
166 }
167 
168 // Test: test-kind=api, api=ArktsInspectApiImpl::coreFunctionToArktsFunction,
169 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreFunctionToArktsFunction)170 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreFunctionToArktsFunction)
171 {
172     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreFunctionToArktsFunction);
173 }
174 
175 // Test: test-kind=api, api=ArktsInspectApiImpl::coreAnnotationElementToArktsAnnotationElement,
176 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0,coreAnnotationElementToArktsAnnotationElement)177 TEST_F(LibAbcKitWrongCtxTestsArktsInspectApiImpl0, coreAnnotationElementToArktsAnnotationElement)
178 {
179     helpers_wrong_ctx::TestWrongCtx(g_arktsInspectApiImp->coreAnnotationElementToArktsAnnotationElement);
180 }
181 
182 }  // namespace libabckit::test
183