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_arktsModifyApiImp = AbckitGetArktsModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32
33 class LibAbcKitWrongCtxTestsArktsModifyApiImpl0 : public ::testing::Test {};
34
35 // Test: test-kind=api, api=ArktsModifyApiImpl::moduleAddImportFromArktsV1ToArktsV1,
36 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsModifyApiImpl0,moduleAddImportFromArktsV1ToArktsV1)37 TEST_F(LibAbcKitWrongCtxTestsArktsModifyApiImpl0, moduleAddImportFromArktsV1ToArktsV1)
38 {
39 helpers_wrong_ctx::TestWrongCtx(g_arktsModifyApiImp->moduleAddImportFromArktsV1ToArktsV1);
40 }
41
42 // Test: test-kind=api, api=ArktsModifyApiImpl::moduleAddExportFromArktsV1ToArktsV1,
43 // abc-kind=NoABC, category=negative-file
TEST_F(LibAbcKitWrongCtxTestsArktsModifyApiImpl0,moduleAddExportFromArktsV1ToArktsV1)44 TEST_F(LibAbcKitWrongCtxTestsArktsModifyApiImpl0, moduleAddExportFromArktsV1ToArktsV1)
45 {
46 helpers_wrong_ctx::TestWrongCtx(g_arktsModifyApiImp->moduleAddExportFromArktsV1ToArktsV1);
47 }
48
49 } // namespace libabckit::test
50