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 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/src/include_v2/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_jsModifyApiImp = AbckitGetJsModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34
35 class LibAbcKitNullptrTestsJsModifyApiImpl0 : public ::testing::Test {};
36
37 // Test: test-kind=api, api=JsModifyApiImpl::fileAddExternalModule,
38 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0,fileAddExternalModule)39 TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0, fileAddExternalModule)
40 {
41 helpers_nullptr::TestNullptr(g_jsModifyApiImp->fileAddExternalModule);
42 }
43
44 // Test: test-kind=api, api=JsModifyApiImpl::moduleAddExportFromJsToJs,
45 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0,moduleAddExportFromJsToJs)46 TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0, moduleAddExportFromJsToJs)
47 {
48 helpers_nullptr::TestNullptr(g_jsModifyApiImp->moduleAddExportFromJsToJs);
49 }
50
51 // Test: test-kind=api, api=JsModifyApiImpl::moduleAddImportFromJsToJs,
52 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0,moduleAddImportFromJsToJs)53 TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0, moduleAddImportFromJsToJs)
54 {
55 helpers_nullptr::TestNullptr(g_jsModifyApiImp->moduleAddImportFromJsToJs);
56 }
57
58 // Test: test-kind=api, api=JsModifyApiImpl::moduleRemoveExport,
59 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0,moduleRemoveExport)60 TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0, moduleRemoveExport)
61 {
62 helpers_nullptr::TestNullptr(g_jsModifyApiImp->moduleRemoveExport);
63 }
64
65 // Test: test-kind=api, api=JsModifyApiImpl::moduleRemoveImport,
66 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0,moduleRemoveImport)67 TEST_F(LibAbcKitNullptrTestsJsModifyApiImpl0, moduleRemoveImport)
68 {
69 helpers_nullptr::TestNullptr(g_jsModifyApiImp->moduleRemoveImport);
70 }
71
72 } // namespace libabckit::test
73